|
|
@@ -178,18 +178,20 @@ class ItemController extends BaseController
|
|
|
$needCgList[$biProductId] = $biInfo->needCgNum;
|
|
|
}
|
|
|
}
|
|
|
- print_r($myIds);die;
|
|
|
if ($globalCgMyCharge == 1) {
|
|
|
- if(!empty($myIds)){
|
|
|
+ if (!empty($myIds)) {
|
|
|
$where['id'] = ['in', $myIds];
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$where['id'] = ['in', [0]];
|
|
|
}
|
|
|
}
|
|
|
+ } else {
|
|
|
+ if ($globalCgMyCharge == 1) {
|
|
|
+ $where['id'] = ['in', [0]];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
$result = ProductClass::getList($field, $where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC]);
|
|
|
$list = $result['list'] ?? [];
|
|
|
if ($requestType == 'hasStockList') {
|