|
|
@@ -322,7 +322,9 @@ class ProductController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if($requestType == 'hideItem'){
|
|
|
+ $where['frontHide'] = 1;
|
|
|
+ }
|
|
|
//客户等级
|
|
|
$customId = Yii::$app->request->get('customId', 0);
|
|
|
$level = 1;
|
|
|
@@ -344,6 +346,10 @@ class ProductController extends BaseController
|
|
|
$itemInfoData[$key]['shortCover'] = $shortCover;
|
|
|
}
|
|
|
}
|
|
|
+ } elseif ($requestType == 'hideItem') {
|
|
|
+ //隐藏花材列表
|
|
|
+ $field = 'id,py,cover,name,classId,itemId,price,skPrice,hjPrice,stock,onStock,cost,avCost,addPrice,hjAddPrice,skMore';
|
|
|
+ $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
} elseif ($requestType == 'changePrice') {
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,addPrice,skPrice,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,skMore,hjAddPrice,addPrice,variety,price,hjPrice,stock,onStock,presell,frontHide,reachNum,reachNumDiscount';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|