检疫记录
This commit is contained in:
@@ -22,6 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="quarOfficer" column="quar_officer" />
|
||||
<result property="result" column="result" />
|
||||
<result property="status" column="status" />
|
||||
<result property="comment" column="comment"/>
|
||||
<result property="updateBy" column="update_by" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
@@ -56,7 +57,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectQuarantineReportById" parameterType="Long" resultMap="QuarantineReportResult">
|
||||
select sqr.id, sheep_type,sheep_id, datetime, quar_item, sample_type, sampler, quar_officer, result, status,
|
||||
sqr.update_by, sqr.update_time, sqr.create_by, sqr.create_time,
|
||||
sqr.comment
|
||||
,sqr.update_by, sqr.update_time, sqr.create_by, sqr.create_time,
|
||||
sqi.name as item_name,
|
||||
sqs.name as sample,
|
||||
sf.bs_manage_tags sheep_no
|
||||
@@ -67,36 +69,49 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where sqr.id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertQuarantineReport" parameterType="QuarantineReport" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into sw_quarantine_report
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="sheepId != null">sheep_id,</if>
|
||||
<if test="datetime != null">datetime,</if>
|
||||
<if test="quarItem != null">quar_item,</if>
|
||||
<if test="sampleType != null">sample_type,</if>
|
||||
<if test="sampler != null">sampler,</if>
|
||||
<if test="quarOfficer != null">quar_officer,</if>
|
||||
<if test="result != null">result,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="sheepId != null">#{sheepId},</if>
|
||||
<if test="datetime != null">#{datetime},</if>
|
||||
<if test="quarItem != null">#{quarItem},</if>
|
||||
<if test="sampleType != null">#{sampleType},</if>
|
||||
<if test="sampler != null">#{sampler},</if>
|
||||
<if test="quarOfficer != null">#{quarOfficer},</if>
|
||||
<if test="result != null">#{result},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
<insert id="insertQuarantineReport" parameterType="java.util.List">
|
||||
INSERT INTO sw_quarantine_report
|
||||
(
|
||||
sheep_id,
|
||||
sheep_type,
|
||||
month_age,
|
||||
parity,
|
||||
breed,
|
||||
gender,
|
||||
datetime,
|
||||
quar_item,
|
||||
sample_type,
|
||||
sampler,
|
||||
quar_officer,
|
||||
result,
|
||||
status,
|
||||
update_by,
|
||||
update_time,
|
||||
create_by,
|
||||
create_time
|
||||
)
|
||||
VALUES
|
||||
<foreach collection="list" item="item" separator=",">
|
||||
(
|
||||
#{item.sheepId},
|
||||
#{item.sheepType},
|
||||
#{item.monthAge},
|
||||
#{item.parity},
|
||||
#{item.breed},
|
||||
#{item.gender},
|
||||
#{item.datetime},
|
||||
#{item.quarItem},
|
||||
#{item.sampleType},
|
||||
#{item.sampler},
|
||||
#{item.quarOfficer},
|
||||
#{item.result},
|
||||
#{item.status},
|
||||
#{item.updateBy},
|
||||
#{item.updateTime},
|
||||
#{item.createBy},
|
||||
#{item.createTime}
|
||||
)
|
||||
</foreach>
|
||||
</insert>
|
||||
|
||||
<update id="updateQuarantineReport" parameterType="QuarantineReport">
|
||||
|
||||
Reference in New Issue
Block a user