|
|
|
@ -529,6 +529,21 @@ class Task extends BaseController |
|
|
|
|
$where[] = ['is_export_failed_bmc', '=', 0]; |
|
|
|
|
$where[] = ['is_export_none_bmc', '=', 0]; |
|
|
|
|
} |
|
|
|
|
if ($params['export_type'] == 'success_bmc') { |
|
|
|
|
$where[] = ['is_export_bhx', '>', 0]; |
|
|
|
|
$where[] = ['is_update_bhx', '>', 0]; |
|
|
|
|
$where[] = ['is_export_bmc', '>', 0]; |
|
|
|
|
$insurer_date1 = $params['insurer_date1']??''; |
|
|
|
|
$insurer_date2 = $params['insurer_date2']??''; |
|
|
|
|
if($insurer_date1!=''){ |
|
|
|
|
$map_or1[] = ['car_info_t.insurer1_date', '>=', $insurer_date1]; |
|
|
|
|
$map_or2[] = ['car_info_t.insurer2_date', '>=', $insurer_date1]; |
|
|
|
|
} |
|
|
|
|
if($insurer_date2!=''){ |
|
|
|
|
$map_or1[] = ['car_info_t.insurer1_date', '<=', $insurer_date2]; |
|
|
|
|
$map_or2[] = ['car_info_t.insurer2_date', '<=', $insurer_date2]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
$insurer_month1 = $params['insurer_month1']??''; |
|
|
|
|
$insurer_day1 = $params['insurer_day1']??''; |
|
|
|
@ -566,7 +581,7 @@ class Task extends BaseController |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
$this->json_data['data'] = $query->count(); |
|
|
|
|
$this->json_data['sql'] = CarInfoT::getLastSql(); |
|
|
|
|
$this->json_data['sql'] = CarInfoT::getLastSql(); |
|
|
|
|
return json($this->json_data); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|