|
|
@@ -38,7 +38,7 @@ class ViolationStore extends Controller
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
if ($end_time) $map[] = ['insert_time', '<=', strtotime($end_time)];
|
|
|
// 其他条件
|
|
|
- if ($status) $map[] = ['status', '=', $status];
|
|
|
+ if (is_numeric($status)) $map[] = ['status', '=', $status];
|
|
|
if ($social_credit_code) $map[] = ['social_credit_code', 'like', "%$social_credit_code%"];
|
|
|
if ($company_name) $map[] = ['company_name', 'like', "%$company_name%"];
|
|
|
if ($store_name) $map[] = ['store_name', 'like', "%$store_name%"];
|