|
|
@@ -70,6 +70,7 @@ class GoodsController extends BaseController
|
|
|
$status = isset($get['status']) && is_numeric($get['status']) ? $get['status'] : -1;
|
|
|
$cId = isset($get['cId']) && !empty($get['cId']) ? $get['cId'] : 0;
|
|
|
$name = isset($get['name']) && !empty($get['name']) ? $get['name'] : '';
|
|
|
+ $flowerNum = isset($get['flowerNum']) && $get['flowerNum'] > 0 ? $get['flowerNum'] : 0;
|
|
|
$where = [];
|
|
|
if ($status != -1) {
|
|
|
$where['status'] = $status;
|
|
|
@@ -82,6 +83,9 @@ class GoodsController extends BaseController
|
|
|
}
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
$where['delStatus'] = 0;
|
|
|
+ if ($flowerNum > 0) {
|
|
|
+ $where['flowerNum'] = $flowerNum;
|
|
|
+ }
|
|
|
$data = GoodsService::getGoodsList($where);
|
|
|
util::success($data);
|
|
|
}
|