115 lines
4.3 KiB
XML
Raw Normal View History

2026-01-13 11:37:37 +08:00
<?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.QcValMapper">
<insert id="insert">
insert into qc_val ( yq, zkrq,
xmdh, zkph, zkpph,
cs, instrybh, zkjg,
yhdh, bz, resultid,
outreason, outtransman, inputdt,
nouse, modidt, modiusr,
outflag, outtxt, bz1,
isconfirm, confirmdt, confirmuser,
nodraw, nocalc, ifuse, usrdata,
sjcs, sjph, outresult,
skjg, zkjg_s)
values ( #{yq}, #{zkrq},
#{xmdh}, #{zkph}, #{zkpph},
#{cs}, #{instrybh}, #{zkjg},
#{yhdh}, #{bz}, #{resultid},
#{outreason}, #{outtransman}, #{inputdt},
#{nouse}, #{modidt}, #{modiusr},
#{outflag}, #{outtxt}, #{bz1},
#{isconfirm}, #{confirmdt}, #{confirmuser},
#{nodraw}, #{nocalc}, #{ifuse}, #{usrdata},
#{sjcs}, #{sjph}, #{outresult},
#{skjg}, #{zkjgS})
</insert>
<update id="update">
update qc_val
set yq = #{yq},
zkrq = #{zkrq},
xmdh = #{xmdh},
zkph = #{zkph},
zkpph = #{zkpph},
cs = #{cs},
instrybh = #{instrybh},
zkjg = #{zkjg},
yhdh = #{yhdh},
bz = #{bz},
resultid = #{resultid},
outreason = #{outreason},
outtransman = #{outtransman},
inputdt = #{inputdt},
nouse = #{nouse},
modidt = #{modidt},
modiusr = #{modiusr},
outflag = #{outflag},
outtxt = #{outtxt},
bz1 = #{bz1},
isconfirm = #{isconfirm},
confirmdt = #{confirmdt},
confirmuser = #{confirmuser},
nodraw = #{nodraw},
nocalc = #{nocalc},
ifuse = #{ifuse},
usrdata = #{usrdata},
sjcs = #{sjcs},
sjph = #{sjph},
outresult = #{outresult},
skjg = #{skjg},
zkjg_s = #{zkjgS}
where qc_valid = #{qcValid}
</update>
<delete id="delete">
delete from qc_val where yq = #{yq} and
<where>
<if test="zkrq != null and zkrq != ''">
and zkrq = #{zkrq}
</if>
<if test="xmdh != null and xmdh != ''">
and xmdh = #{xmdh}
</if>
<if test="zkph != null and zkph != ''">
and zkph = #{zkph}
</if>
<if test="cs != null and cs != ''">
and cs = #{cs}
</if>
</where>
</delete>
<delete id="deleteById">
delete from qc_val where qc_valid = #{qcValid}
</delete>
<select id="queryOne" resultType="com.czlis.common.core.domain.entity.lis.QcVal">
select * from qc_val where yq = #{yq} and xmdh = #{xmdh} and zkph = #{zkph} and zkrq = #{zkrq} and cs = #{cs}
</select>
<select id="queryById" resultType="com.czlis.common.core.domain.entity.lis.QcVal">
select * from qc_val where qc_valid = #{qcValid}
</select>
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.QcVal">
select * from qc_val
<where>
<if test="zkrq != null and zkrq != ''">
and zkrq = #{zkrq}
</if>
<if test="yq != null and yq != ''">
and yq = #{yq}
</if>
<if test="xmdh != null and xmdh != ''">
and xmdh = #{xmdh}
</if>
<if test="zkph != null and zkph != ''">
and zkph = #{zkph}
</if>
<if test="cs != null and cs != ''">
and cs = #{cs}
</if>
</where>
</select>
</mapper>