去重任务调试

master
zcstatham 2 years ago
parent 75edd4ac80
commit 2f642831b8
  1. 9
      app/controller/Task.php

@ -270,14 +270,7 @@ class Task extends BaseController
return json($this->json_data); return json($this->json_data);
} }
if ($type == 3 || $type == 4) { if ($type == 3 || $type == 4) {
$where = []; $count = CarInfoT::count();
if($params['export_date1'] != ''){
$where[] = ['car_info_t.register_date', '>=', $params['export_date1']];
}
if($params['export_date2'] != ''){
$where[] = ['car_info_t.register_date', '<=', $params['export_date2']];
}
$count = CarInfoT::where($where)->count();
if ($count <= 0) { if ($count <= 0) {
$this->json_data['code'] = 0; $this->json_data['code'] = 0;
$this->json_data['msg'] = '当前待处理数据为空,请检查条件'; $this->json_data['msg'] = '当前待处理数据为空,请检查条件';

Loading…
Cancel
Save