|
|
|
@ -642,12 +642,11 @@ |
|
|
|
from patrol_result a |
|
|
|
LEFT JOIN result_analysis b on a.line_id=b.business_id |
|
|
|
<where> |
|
|
|
b.result_type != '2' |
|
|
|
<if test="isToday != null and isToday != '' and isToday == 1">and to_days(a.create_time) = to_days(now())</if> |
|
|
|
<if test="objectId != null and objectId != ''">and b.objectId = #{objectId}</if> |
|
|
|
<if test="filter != null and filter != ''">and b.filter = #{filter}</if> |
|
|
|
<if test="type != null and type != '' and type == 0">and b.point_status = 0 </if> |
|
|
|
and b.res_code = '2000' |
|
|
|
and b.result_type != 2 |
|
|
|
<if test="type != null and type != '' and type == 0">and b.result_type = '0' </if> |
|
|
|
</where> |
|
|
|
ORDER BY b.line_id desc |
|
|
|
</select> |
|
|
|
|