|
|
@ -1064,6 +1064,9 @@ |
|
|
<if test = "query.spec != null and query.spec != ''"> |
|
|
<if test = "query.spec != null and query.spec != ''"> |
|
|
AND d.spec LIKE '%' + #{query.spec} + '%' |
|
|
AND d.spec LIKE '%' + #{query.spec} + '%' |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test = "query.documentNo != null and query.documentNo != ''"> |
|
|
|
|
|
AND a.document_no LIKE '%' + #{query.documentNo} + '%' |
|
|
|
|
|
</if> |
|
|
</where> |
|
|
</where> |
|
|
ORDER BY |
|
|
ORDER BY |
|
|
CASE WHEN a.state = '待检验' THEN 1 |
|
|
CASE WHEN a.state = '待检验' THEN 1 |
|
|
|