|
|
@@ -16,13 +16,15 @@ class ShopYeChangeController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$status = $get['status'] ?? 0;
|
|
|
- $tx = $get['tx'] ?? dict::getDict('yeTx', 'canNot');
|
|
|
$where = [];
|
|
|
if (!empty($status)) {
|
|
|
$where['status'] = $status;
|
|
|
}
|
|
|
$where['shopId'] = $this->shopId;
|
|
|
- $where['tx'] = $tx;
|
|
|
+ $tx = $get['tx'] ?? 0;
|
|
|
+ if (!empty($tx)) {
|
|
|
+ $where['tx'] = $tx;
|
|
|
+ }
|
|
|
$list = ShopYeChangeClass::getChangeList($where);
|
|
|
util::success($list);
|
|
|
}
|