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