shish há 3 anos atrás
pai
commit
08cdaa52f1
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      app-ghs/controllers/ProductController.php

+ 2 - 0
app-ghs/controllers/ProductController.php

@@ -255,6 +255,7 @@ class ProductController extends BaseController
             $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
             $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
         } elseif ($requestType == 'stopList') {
         } elseif ($requestType == 'stopList') {
             //停用花材列表
             //停用花材列表
+            unset($where['status']);
             $where['delStatus'] = 1;
             $where['delStatus'] = 1;
             $where['removeStatus'] = 0;
             $where['removeStatus'] = 0;
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,bigUnit,smallUnit,ratio,ratioType,discountPrice,skMore,variety,price,stock,presell,status';
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,bigUnit,smallUnit,ratio,ratioType,discountPrice,skMore,variety,price,stock,presell,status';
@@ -262,6 +263,7 @@ class ProductController extends BaseController
             $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
             $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
         } elseif ($requestType == 'removeList') {
         } elseif ($requestType == 'removeList') {
             //删除花材列表
             //删除花材列表
+            unset($where['status']);
             $where['delStatus'] = 1;
             $where['delStatus'] = 1;
             $where['removeStatus'] = 1;
             $where['removeStatus'] = 1;
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,bigUnit,smallUnit,ratio,ratioType,discountPrice,skMore,variety,price,stock,presell,status';
             $field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,bigUnit,smallUnit,ratio,ratioType,discountPrice,skMore,variety,price,stock,presell,status';