生物安全羊只耳号查询

This commit is contained in:
2026-03-06 22:44:16 +08:00
parent 73a6e881e3
commit 6261b65040
35 changed files with 259 additions and 4 deletions

View File

@@ -102,6 +102,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where sqr.id = #{id}
ORDER BY datetime DESC
</select>
<select id="selectSheepNoList" resultType="java.lang.String" parameterType="QuarantineReport">
SELECT DISTINCT bs.manage_tags
FROM sw_quarantine_report s
LEFT JOIN bas_sheep bs ON s.sheep_id = bs.id
<where>
bs.manage_tags IS NOT NULL AND bs.manage_tags != ''
<if test="sheepNo!=null and sheepNo!= ''">
and bs.manage_tags LIKE CONCAT('%', #{sheepNo}, '%')
</if>
${params.dataScope}
</where>
ORDER BY bs.manage_tags ASC
</select>
<insert id="insertQuarantineReport" parameterType="java.util.List">
INSERT INTO sw_quarantine_report