Browse Source

种类名称

shish 3 năm trước cách đây
mục cha
commit
08b09c2bfe

+ 2 - 0
biz-hd/goods/classes/GoodsClass.php

@@ -358,6 +358,7 @@ class GoodsClass extends BaseClass
         $data['py'] = stringUtil::py($data['name']);
         $data['py'] = stringUtil::py($data['name']);
         $flowerNum = $data['flowerNum'] ?? 0;
         $flowerNum = $data['flowerNum'] ?? 0;
         $kindId = $data['kindId'] ?? 0;
         $kindId = $data['kindId'] ?? 0;
+        $kindName = $data['kindName'] ?? '';
         $sn = orderSn::getGoodsSn();
         $sn = orderSn::getGoodsSn();
         $data['sn'] = $sn;
         $data['sn'] = $sn;
         $addStock = $data['stock'] ?? 0;
         $addStock = $data['stock'] ?? 0;
@@ -411,6 +412,7 @@ class GoodsClass extends BaseClass
                 'delStatus' => $delStatus,
                 'delStatus' => $delStatus,
                 'setItemNum' => $setItemNum,
                 'setItemNum' => $setItemNum,
                 'kindId' => $kindId,
                 'kindId' => $kindId,
+                'kindName' => $kindName,
             ];
             ];
             GoodsCategoryClass::add($addCategory);
             GoodsCategoryClass::add($addCategory);
             CategoryClass::counters(['goodsNum' => 1], ['id' => $catId]);
             CategoryClass::counters(['goodsNum' => 1], ['id' => $catId]);