|
|
@@ -33,12 +33,14 @@ class ViolationProduct extends Controller
|
|
|
$start_time = request('start_time', '');
|
|
|
$end_time = request('end_time', '');
|
|
|
$product_name = request('product_name', '');
|
|
|
+ $platform = request('platform', '');
|
|
|
// 时间条件
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
if ($end_time) $map[] = ['insert_time', '<=', strtotime($end_time)];
|
|
|
// 其他条件
|
|
|
if (is_numeric($status)) $map[] = ['status', '=', $status];
|
|
|
if ($product_name) $map[] = ['product_name', 'like', "%$product_name%"];
|
|
|
+ if ($platform) $map[] = ['platform', 'like', "%$platform%"];
|
|
|
// 查询数据
|
|
|
$result = $ViolationProductModel->query()
|
|
|
->where($map)
|