生物安全羊只耳号查询
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user