|
|
|
@ -1584,6 +1584,12 @@ |
|
|
|
<if test="query.endDate != null"> |
|
|
|
AND #{query.endDate} >= inspector_date |
|
|
|
</if> |
|
|
|
<if test="query.startDate2 != null"> |
|
|
|
AND task_date >= #{query.startDate2} |
|
|
|
</if> |
|
|
|
<if test="query.endDate2 != null"> |
|
|
|
AND #{query.endDate2} >= task_date |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
|
@ -1896,6 +1902,12 @@ |
|
|
|
<if test="query.endDate != null"> |
|
|
|
AND #{query.endDate} >= inspector_date |
|
|
|
</if> |
|
|
|
<if test="query.startDate2 != null"> |
|
|
|
AND task_date >= #{query.startDate2} |
|
|
|
</if> |
|
|
|
<if test="query.endDate2 != null"> |
|
|
|
AND #{query.endDate2} >= task_date |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
|
@ -2230,6 +2242,12 @@ |
|
|
|
<if test="query.endDate != null"> |
|
|
|
AND #{query.endDate} >= inspector_date |
|
|
|
</if> |
|
|
|
<if test="query.startDate2 != null"> |
|
|
|
AND create_date >= #{query.startDate2} |
|
|
|
</if> |
|
|
|
<if test="query.endDate2 != null"> |
|
|
|
AND #{query.endDate2} >= create_date |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
|
@ -2548,6 +2566,12 @@ |
|
|
|
<if test="query.endDate != null"> |
|
|
|
AND #{query.endDate} >= inspector_date |
|
|
|
</if> |
|
|
|
<if test="query.startDate2 != null"> |
|
|
|
AND task_date >= #{query.startDate2} |
|
|
|
</if> |
|
|
|
<if test="query.endDate2 != null"> |
|
|
|
AND #{query.endDate2} >= task_date |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY |
|
|
|
CASE WHEN state = '待检验' THEN 1 |
|
|
|
|