|
@@ -269,7 +269,11 @@ class ProductController extends BaseController
|
|
|
$itemInfoData = ProductClass::checkItemGroup($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::checkItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'break') {
|
|
} elseif ($requestType == 'break') {
|
|
|
//报损花材
|
|
//报损花材
|
|
|
- $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
|
|
|
|
|
|
|
+ if (in_array($this->mainId, [52, 1459, 2126, 2128])) {
|
|
|
|
|
+ $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio';
|
|
|
|
|
+ }else{
|
|
|
|
|
+ $field = 'id,py,cover,name,itemId,classId,variety,price,discountPrice,stock,stockWarning,presell,ratioType,smallUnit,bigUnit,ratio,frontHide';
|
|
|
|
|
+ }
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
$itemInfoData = ProductClass::breakItemGroup($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::breakItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'part') {
|
|
} elseif ($requestType == 'part') {
|