|
|
@@ -204,6 +204,7 @@ class ProductController extends BaseController
|
|
|
$where['removeStatus'] = 0;
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,discountPrice,skMore,variety,price,stock,presell';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
+ $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'stopList') {
|
|
|
//停用花材列表
|
|
|
$where['status'] = 2;
|
|
|
@@ -211,6 +212,7 @@ class ProductController extends BaseController
|
|
|
$where['removeStatus'] = 0;
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,discountPrice,skMore,variety,price,stock,presell';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
+ $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'removeList') {
|
|
|
//删除花材列表
|
|
|
$where['status'] = 2;
|
|
|
@@ -218,6 +220,7 @@ class ProductController extends BaseController
|
|
|
$where['removeStatus'] = 1;
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,discountPrice,skMore,variety,price,stock,presell';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
+ $itemInfoData = ProductClass::simpleGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'check') {
|
|
|
//盘点花材列表
|
|
|
$field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
|