检疫记录
This commit is contained in:
@@ -104,12 +104,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
WHERE s.id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="selectBasSheepByManageTags" parameterType="string" resultType="com.zhyc.module.base.domain.BasSheep">
|
||||
SELECT id, sheepfold_id AS sheepfoldId, variety_id AS varietyId
|
||||
FROM bas_sheep
|
||||
WHERE LOWER(TRIM(manage_tags)) = LOWER(TRIM(#{manageTags}))
|
||||
AND is_delete = 0
|
||||
LIMIT 1
|
||||
<select id="selectBasSheepByManageTags" parameterType="BasSheep" resultMap="BasSheepResult">
|
||||
<include refid="selectBasSheepVo"/>
|
||||
<where>
|
||||
manage_tags = #{manageTags}
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectBasSheepBySheepfold" parameterType="BasSheep" resultMap="BasSheepResult">
|
||||
<include refid="selectBasSheepVo"/>
|
||||
<where>
|
||||
sheepfold_id = #{id}
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertBasSheep" parameterType="BasSheep" useGeneratedKeys="true" keyProperty="id">
|
||||
|
||||
Reference in New Issue
Block a user