Browse Source

2026-04-14

检验的查询条件优化
master
fengyuan_yang 2 months ago
parent
commit
a3d2e937d1
  1. 3
      src/main/resources/mapper/pms/QcMapper.xml

3
src/main/resources/mapper/pms/QcMapper.xml

@ -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

Loading…
Cancel
Save