81 lines
3.7 KiB
XML
81 lines
3.7 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||
|
|
<mapper namespace="com.czlis.liswork.mapper.QcSampleMapper">
|
||
|
|
<insert id="insert">
|
||
|
|
insert into qc_sample(
|
||
|
|
<if test="zkpph != null and zkpph != ''">zkpph,</if>
|
||
|
|
<if test="ld != null and ld != ''">ld,</if>
|
||
|
|
<if test="cv != null">cv,</if>
|
||
|
|
<if test="sd != null">sd,</if>
|
||
|
|
<if test="zkbz != null">zkbz,</if>
|
||
|
|
<if test="bc != null and bc != ''">bc,</if>
|
||
|
|
<if test="ff != null and ff != ''">ff,</if>
|
||
|
|
<if test="sjph != null and sjph != ''">sjph,</if>
|
||
|
|
<if test="sm != null and sm != ''">sm,</if>
|
||
|
|
<if test="bz1 != null and bz1 != ''">bz1,</if>
|
||
|
|
<if test="endrq != null ">endrq,</if>
|
||
|
|
<if test="standsrc != null and standsrc != ''">standsrc,</if>
|
||
|
|
<if test="outdt != null ">outdt,</if>
|
||
|
|
<if test="stopdate != null ">stopdate,</if>
|
||
|
|
<if test="qcsrc != null and qcsrc != ''">qcsrc,</if>
|
||
|
|
<if test="expiredt != null ">expiredt,</if>
|
||
|
|
<if test="qccv != null ">qccv,</if>
|
||
|
|
yq, xmdh, zkph, ksrq
|
||
|
|
values(
|
||
|
|
<if test="zkpph != null and zkpph != ''">#{zkpph},</if>
|
||
|
|
<if test="ld != null and ld != ''">#{ld},</if>
|
||
|
|
<if test="cv != null">#{cv},</if>
|
||
|
|
<if test="sd != null">#{sd},</if>
|
||
|
|
<if test="zkbz != null">#{zkbz},</if>
|
||
|
|
<if test="bc != null and bc != ''">#{bc},</if>
|
||
|
|
<if test="ff != null and ff != ''">#{ff},</if>
|
||
|
|
<if test="sjph != null and sjph != ''">#{sjph},</if>
|
||
|
|
<if test="sm != null and sm != ''">#{sm},</if>
|
||
|
|
<if test="bz1 != null and bz1 != ''">#{bz1},</if>
|
||
|
|
<if test="endrq != null ">#{endrq},</if>
|
||
|
|
<if test="standsrc != null and standsrc != ''">#{standsrc},</if>
|
||
|
|
<if test="outdt != null ">#{outdt},</if>
|
||
|
|
<if test="stopdate != null ">#{stopdate},</if>
|
||
|
|
<if test="qcsrc != null and qcsrc != ''">#{qcsrc},</if>
|
||
|
|
<if test="expiredt != null ">#{expiredt},</if>
|
||
|
|
<if test="qccv != null ">#{qccv},</if>
|
||
|
|
#{yq},#{xmdh},#{zkph},#{ksrq}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
<update id="update">
|
||
|
|
update qc_sample set
|
||
|
|
<if test="zkpph != null and zkpph != ''">zkpph = #{zkpph},</if>
|
||
|
|
<if test="ld != null and ld != ''">ld = #{ld},</if>
|
||
|
|
<if test="cv != null">cv = #{cv},</if>
|
||
|
|
<if test="sd != null">sd = #{sd},</if>
|
||
|
|
<if test="zkbz != null">zkbz = #{zkbz},</if>
|
||
|
|
<if test="bc != null and bc != ''">bc = #{bc},</if>
|
||
|
|
<if test="ff != null and ff != ''">ff = #{ff},</if>
|
||
|
|
<if test="sjph != null and sjph != ''">sjph = #{sjph},</if>
|
||
|
|
<if test="sm != null and sm != ''">sm = #{sm},</if>
|
||
|
|
<if test="bz1 != null and bz1 != ''">bz1 = #{bz1},</if>
|
||
|
|
<if test="endrq != null ">endrq = #{endrq},</if>
|
||
|
|
<if test="standsrc != null and standsrc != ''">standsrc = #{standsrc},</if>
|
||
|
|
<if test="outdt != null ">outdt = #{outdt},</if>
|
||
|
|
<if test="stopdate != null ">stopdate = #{stopdate},</if>
|
||
|
|
<if test="qcsrc != null and qcsrc != ''">qcsrc = #{qcsrc},</if>
|
||
|
|
<if test="expiredt != null ">expiredt = #{expiredt},</if>
|
||
|
|
<if test="qccv != null ">qccv = #{qccv},</if>
|
||
|
|
yq = #{yq}, xmdh = #{xmdh}, zkph = #{zkph}, ksrq = #{ksrq}
|
||
|
|
where yq = #{yq} and xmdh = #{xmdh} and zkph = #{zkph} and ksrq = #{ksrq}
|
||
|
|
</update>
|
||
|
|
|
||
|
|
|
||
|
|
<delete id="delete">
|
||
|
|
delete from qc_sample where yq = #{yq} and xmdh = #{xmdh} and zkph = #{zkph} and ksrq = #{ksrq}
|
||
|
|
</delete>
|
||
|
|
|
||
|
|
<select id="queryOne" resultType="com.czlis.common.core.domain.entity.lis.QcSample">
|
||
|
|
select * from qc_sample where yq = #{yq} and xmdh = #{xmdh} and zkph = #{zkph} and ksrq = #{ksrq}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|