Browse Source

增加参数的说明

林琦海 5 years ago
parent
commit
f2b2aae371
1 changed files with 20 additions and 0 deletions
  1. 20 0
      biz-ghs/item/classes/ItemInfoClass.php

+ 20 - 0
biz-ghs/item/classes/ItemInfoClass.php

@@ -77,6 +77,13 @@ class ItemInfoClass extends BaseClass
 
 
     //加库存,允许负库存,负数数量(盘点时)
+
+    /**
+     * @param $ghsItemInfoId  门店下的花材ID(xhGhsItemInfo 主键ID)
+     * @param $itemNumBundle  花材数量(扎)
+     * @param $itemNumPiece  花材数量(支)
+     * @return bool
+     */
     public static function addStock($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
     {
         $itemInfoData =self::getById($ghsItemInfoId);
@@ -97,6 +104,13 @@ class ItemInfoClass extends BaseClass
     }
 
     //减库存,允许负库存,负数数量(盘点时)
+
+    /**
+     * @param $ghsItemInfoId  门店下的花材ID(xhGhsItemInfo 主键ID)
+     * @param $itemNumBundle  花材数量(扎)
+     * @param $itemNumPiece  花材数量(支)
+     * @return bool
+     */
     public static function decreaseStock($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
     {
         $itemInfoData =self::getById($ghsItemInfoId);
@@ -118,6 +132,12 @@ class ItemInfoClass extends BaseClass
 
 
     //计算价格
+    /**
+     * @param $ghsItemInfoId  门店下的花材ID(xhGhsItemInfo 主键ID)
+     * @param $itemNumBundle  花材数量(扎)
+     * @param $itemNumPiece  花材数量(支)
+     * @return bool
+     */
     public static function computedPrice($ghsItemInfoId,$itemNumBundle,$itemNumPiece)
     {
         //获取itemId的价格