去重任务调试

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);
}
if ($type == 3 || $type == 4) {
$where = [];
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();
$count = CarInfoT::count();
if ($count <= 0) {
$this->json_data['code'] = 0;
$this->json_data['msg'] = '当前待处理数据为空,请检查条件';

Loading…
Cancel
Save