|
|
@@ -83,7 +83,7 @@ class ItemController extends BaseController
|
|
|
$search = $get['search'] ?? '';
|
|
|
$requestType = $get['requestType'] ?? 'kd';
|
|
|
$classId = $get['classId'] ?? 0;
|
|
|
- $checkStock = $get['checkStock'] ?? 0;
|
|
|
+ $lookStock = $get['lookStock'] ?? 0;
|
|
|
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
if ($requestType == 'kd') {
|
|
|
@@ -91,10 +91,10 @@ class ItemController extends BaseController
|
|
|
$where['status'] = 1;
|
|
|
} elseif ($requestType == 'itemList') {
|
|
|
$where['delStatus'] = 0;
|
|
|
- if($checkStock == 1){
|
|
|
+ if($lookStock == 1){
|
|
|
$where['stock>'] = 0;
|
|
|
}
|
|
|
- if($checkStock ==2){
|
|
|
+ if($lookStock ==2){
|
|
|
$where['stock'] = 0;
|
|
|
}
|
|
|
unset($where['status']);
|