|
|
@@ -69,12 +69,10 @@ class ProductController extends BaseController
|
|
|
public function actionList()
|
|
|
{
|
|
|
$where = [];
|
|
|
- $where['sjId'] = $this->sjId;
|
|
|
$classId = Yii::$app->request->get('classId', 0);
|
|
|
if (!empty($classId)) {
|
|
|
$where['classId'] = $classId;
|
|
|
}
|
|
|
-
|
|
|
$name = Yii::$app->request->get('name', '');
|
|
|
if (empty($name)) {
|
|
|
$py = Yii::$app->request->get('py', '');
|
|
|
@@ -87,17 +85,14 @@ class ProductController extends BaseController
|
|
|
$where['name'] = ['like', $name];
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
$status = Yii::$app->request->get('status', 0);
|
|
|
if (!empty($status)) {
|
|
|
$where['status'] = $status;
|
|
|
}
|
|
|
-
|
|
|
$delStatus = Yii::$app->request->get('delStatus', 0);
|
|
|
if ($delStatus != 2) {
|
|
|
$where['delStatus'] = $delStatus;
|
|
|
}
|
|
|
-
|
|
|
$where['mainId'] = $this->mainId;
|
|
|
$productIds = Yii::$app->request->get('ids', '');
|
|
|
if (!empty($productIds)) {
|