耳号模糊查询修改

This commit is contained in:
zyh
2026-03-05 21:41:11 +08:00
parent 68cd6b0e60
commit 5693ca46c0
10 changed files with 21 additions and 20 deletions

View File

@@ -155,11 +155,12 @@
#{id}
</foreach>
</delete>
<select id="searchEarNumbers" resultType="java.lang.String">
SELECT DISTINCT bs.manage_tags
FROM bas_sheep bs
FROM sc_breast_rating sbr
LEFT JOIN bas_sheep bs ON sbr.sheep_id = bs.id
WHERE bs.manage_tags LIKE CONCAT('%', #{query}, '%')
AND bs.is_delete = 0
ORDER BY bs.manage_tags
</select>