|
|
@@ -37,14 +37,14 @@ |
|
|
|
and d.driver_area = #{areaId} |
|
|
|
</if> |
|
|
|
<if test="param != null and param.beginTime != null and param.beginTime != ''"> |
|
|
|
and d.execution_time between concat(#{param.beginTime}, ' 00:00:00') and concat(#{param.endTime}, ' 23:59:59') |
|
|
|
and (d.execution_time between concat(#{param.beginTime}, ' 00:00:00') and concat(#{param.endTime}, ' 23:59:59')) |
|
|
|
</if> |
|
|
|
group by q.category; |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="getInspectFileList" resultType="com.taauav.front.vo.LsInspectFileVo"> |
|
|
|
select f.id, q.id as 'questionId', i.id as 'inspectDriverId', d.id as 'driverId', a.realname as 'driverManagerName', |
|
|
|
i.execution_time, f.gaode_latitude as 'latitude', f.gaode_longitude as 'longitude', d.name as 'driverName' |
|
|
|
i.execution_time as 'executionTime', f.gaode_latitude as 'latitude', f.gaode_longitude as 'longitude', d.name as 'driverName' |
|
|
|
from tauv_inspect_file as f |
|
|
|
left join tauv_question_options as q on f.question_id = q.id |
|
|
|
left join tauv_inspect_driver as i on f.inspect_driver_id = i.id |
|
|
@@ -59,7 +59,7 @@ |
|
|
|
and q.category = #{param.category} |
|
|
|
</if> |
|
|
|
<if test="param != null and param.beginTime != null and param.beginTime != ''"> |
|
|
|
and i.execution_time between concat(#{param.beginTime}, ' 00:00:00') and concat(#{param.endTime}, ' 23:59:59') |
|
|
|
and (i.execution_time between concat(#{param.beginTime}, ' 00:00:00') and concat(#{param.endTime}, ' 23:59:59')) |
|
|
|
</if> |
|
|
|
order by i.execution_time desc |
|
|
|
</select> |