|
|
@@ -277,6 +277,14 @@ class ViolationProduct extends Controller
|
|
|
$query1->select('violation_product_logid')->fromSub($subQuery, 'sub1');
|
|
|
});
|
|
|
}
|
|
|
+ $result_totle = $ViolationProductModel
|
|
|
+ ->where($map)
|
|
|
+ ->orderByDesc('id')
|
|
|
+ ->count();
|
|
|
+ // 数量过多时,限制导出
|
|
|
+ if ($result_totle > 10000) {
|
|
|
+ return json_send(['code' => 'error', 'msg' => '导出数据过多,请缩小查询条件']);
|
|
|
+ }
|
|
|
$result = $ViolationProductModel
|
|
|
->where($map)
|
|
|
->orderByDesc('id')
|