165 lines
8.6 KiB
XML
Raw Normal View History

2025-06-19 16:44:11 +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.xtwh.InstrMapper">
2025-08-07 10:50:59 +08:00
<select id="query" resultType="com.czlis.common.core.domain.entity.lis.LabInstr">
2025-06-19 16:44:11 +08:00
select * from lab_instr
<where>
<if test="yq != null and yq != ''">and yq = #{yq}</if>
</where>
</select>
2025-07-04 00:22:41 +08:00
<select id="querybylisgroup">
select * from lab_instr
<where>
<if test="lisgroup != null and lisgroup != ''">and lisgroup = #{lisgroup}</if>
</where>
</select>
2025-06-19 16:44:11 +08:00
<insert id="add">
insert into lab_instr(
<if test="yqmc != null and yqmc != ''">yqmc,</if>
<if test="yqdl != null and yqdl != ''">yqdl,</if>
<if test="jbs != null">jbs,</if>
<if test="csbg != null and csbg != ''">csbg,</if>
<if test="dnmc != null and dnmc != ''">dnmc,</if>
<if test="bgdh != null ">bgdh,</if>
<if test="bgtt != null and bgtt != ''">bgtt,</if>
<if test="zcm != null and zcm != ''">zcm,</if>
<if test="zzdx != null ">zzdx,</if>
<if test="zzfx != null and zzfx != ''">zzfx,</if>
<if test="zzcd != null">zzcd,</if>
<if test="zzkd != null">zzkd,</if>
<if test="sjl != null">sjl,</if>
<if test="zjl != null">zjl,</if>
<if test="yjl != null">yjl,</if>
<if test="xjl != null">xjl,</if>
<if test="qtzzdx != null">qtzzdx,</if>
<if test="qtzzfx != null and qtzzfx != ''">qtzzfx,</if>
<if test="qtsjl != null ">qtsjl,</if>
<if test="qtzjl != null ">qtzjl,</if>
<if test="qtyjl != null ">qtyjl,</if>
<if test="qtxjl != null ">qtxjl,</if>
<if test="myhs != null ">myhs,</if>
<if test="pcdyms != null and pcdyms != ''">pcdyms,</if>
<if test="txjg != null ">txjg,</if>
<if test="sdtfx1 != null and sdtfx1 != ''">sdtfx1,</if>
<if test="sdtfx2 != null and sdtfx2 != ''">sdtfx2,</if>
<if test="posflag != null and posflag != ''">posflag,</if>
<if test="weakflag != null and weakflag != ''">weakflag,</if>
<if test="upflag != null and upflag != ''">upflag,</if>
<if test="lowflag != null and lowflag != ''">lowflag,</if>
<if test="errflag != null and errflag != ''">errflag,</if>
<if test="yqxh != null and yqxh != ''">yqxh,</if>
<if test="lisgroup != null and lisgroup != ''">lisgroup,</if>
<if test="myhs1 != null ">myhs1,</if>
<if test="userpt2cnt != null ">userpt2cnt,</if>
<if test="billingmode != null and billingmode != ''">billingmode,</if>
<if test="instrid != null and instrid != ''">instrid,</if>
<if test="wjzflag != null and wjzflag != ''">wjzflag,</if>
<if test="backgpmd != null and backgpmd != ''">backgpmd,</if>
<if test="yljg != null and yljg != ''">yljg,</if>
<if test="useflag != null and useflag != ''">useflag,</if>
yq
)values(
<if test="yqmc != null and yqmc != ''">#{yqmc},</if>
<if test="yqdl != null and yqdl != ''">#{yqdl},</if>
<if test="jbs != null">#{jbs},</if>
<if test="csbg != null and csbg != ''">#{csbg},</if>
<if test="dnmc != null and dnmc != ''">#{dnmc},</if>
<if test="bgdh != null ">#{bgdh},</if>
<if test="bgtt != null and bgtt != ''">#{bgtt},</if>
<if test="zcm != null and zcm != ''">#{zcm},</if>
<if test="zzdx != null ">#{zzdx},</if>
<if test="zzfx != null and zzfx != ''">#{zzfx},</if>
<if test="zzcd != null">#{zzcd},</if>
<if test="zzkd != null">#{zzkd},</if>
<if test="sjl != null">#{sjl},</if>
<if test="zjl != null">#{zjl},</if>
<if test="yjl != null">#{yjl},</if>
<if test="xjl != null">#{xjl},</if>
<if test="qtzzdx != null">#{qtzzdx},</if>
<if test="qtzzfx != null and qtzzfx != ''">#{qtzzfx},</if>
<if test="qtsjl != null ">#{qtsjl},</if>
<if test="qtzjl != null ">#{qtzjl},</if>
<if test="qtyjl != null ">#{qtyjl},</if>
<if test="qtxjl != null ">#{qtxjl},</if>
<if test="myhs != null ">#{myhs},</if>
<if test="pcdyms != null and pcdyms != ''">#{pcdyms},</if>
<if test="txjg != null ">#{txjg},</if>
<if test="sdtfx1 != null and sdtfx1 != ''">#{sdtfx1},</if>
<if test="sdtfx2 != null and sdtfx2 != ''">#{sdtfx2},</if>
<if test="posflag != null and posflag != ''">#{posflag},</if>
<if test="weakflag != null and weakflag != ''">#{weakflag},</if>
<if test="upflag != null and upflag != ''">#{upflag},</if>
<if test="lowflag != null and lowflag != ''">#{lowflag},</if>
<if test="errflag != null and errflag != ''">#{errflag},</if>
<if test="yqxh != null and yqxh != ''">#{yqxh},</if>
<if test="lisgroup != null and lisgroup != ''">#{lisgroup},</if>
<if test="myhs1 != null ">#{myhs1},</if>
<if test="userpt2cnt != null ">#{userpt2cnt},</if>
<if test="billingmode != null and billingmode != ''">#{billingmode},</if>
<if test="instrid != null and instrid != ''">#{instrid},</if>
<if test="wjzflag != null and wjzflag != ''">#{wjzflag},</if>
<if test="backgpmd != null and backgpmd != ''">#{backgpmd},</if>
<if test="yljg != null and yljg != ''">#{yljg},</if>
<if test="useflag != null and useflag != ''">#{useflag},</if>
#{yq}
)
</insert>
<update id="update">
update lab_instr
<set>
<if test="yqmc != null and yqmc != ''">yqmc = #{yqmc},</if>
<if test="yqdl != null and yqdl != ''">yqdl = #{yqdl},</if>
<if test="jbs != null">jbs = #{jbs},</if>
<if test="csbg != null and csbg != ''">csbg = #{csbg},</if>
<if test="dnmc != null and dnmc != ''">dnmc = #{dnmc},</if>
<if test="bgdh != null ">bgdh = #{bgdh},</if>
<if test="bgtt != null and bgtt != ''">bgtt = #{bgtt},</if>
<if test="zcm != null and zcm != ''">zcm = #{zcm},</if>
<if test="zzdx != null ">zzdx = #{zzdx},</if>
<if test="zzfx != null and zzfx != ''">zzfx = #{zzfx},</if>
<if test="zzcd != null">zzcd = #{zzcd},</if>
<if test="zzkd != null">zzkd = #{zzkd},</if>
<if test="sjl != null">sjl = #{sjl},</if>
<if test="zjl != null">zjl = #{zjl},</if>
<if test="yjl != null">yjl = #{yjl},</if>
<if test="xjl != null">xjl = #{xjl},</if>
<if test="qtzzdx != null">qtzzdx = #{qtzzdx},</if>
<if test="qtzzfx != null and qtzzfx != ''">qtzzfx = #{qtzzfx},</if>
<if test="qtsjl != null ">qtsjl = #{qtsjl},</if>
<if test="qtzjl != null ">qtzjl = #{qtzjl},</if>
<if test="qtyjl != null ">qtyjl = #{qtyjl},</if>
<if test="qtxjl != null ">qtxjl = #{qtxjl},</if>
<if test="myhs != null ">myhs = #{myhs},</if>
<if test="pcdyms != null and pcdyms != ''">pcdyms = #{pcdyms},</if>
<if test="txjg != null ">txjg = #{txjg},</if>
<if test="sdtfx1 != null and sdtfx1 != ''">sdtfx1 = #{sdtfx1},</if>
<if test="sdtfx2 != null and sdtfx2 != ''">sdtfx2 = #{sdtfx2},</if>
<if test="posflag != null and posflag != ''">posflag = #{posflag},</if>
<if test="weakflag != null and weakflag != ''">weakflag = #{weakflag},</if>
<if test="upflag != null and upflag != ''">upflag = #{upflag},</if>
<if test="lowflag != null and lowflag != ''">lowflag = #{lowflag},</if>
<if test="errflag != null and errflag != ''">errflag = #{errflag},</if>
<if test="yqxh != null and yqxh != ''">yqxh = #{yqxh},</if>
<if test="lisgroup != null and lisgroup != ''">lisgroup = #{lisgroup},</if>
<if test="myhs1 != null ">myhs1 = #{myhs1},</if>
<if test="userpt2cnt != null ">userpt2cnt = #{userpt2cnt},</if>
<if test="billingmode != null and billingmode != ''">billingmode = #{billingmode},</if>
<if test="instrid != null and instrid != ''">instrid = #{instrid},</if>
<if test="wjzflag != null and wjzflag != ''">wjzflag = #{wjzflag},</if>
<if test="backgpmd != null and backgpmd != ''">backgpmd = #{backgpmd},</if>
<if test="yljg != null and yljg != ''">yljg = #{yljg},</if>
<if test="useflag != null and useflag != ''">useflag = #{useflag},</if>
yq = #{yq}
</set>
where yq = #{yq}
</update>
<delete id="delete">
delete from lab_instr where yq = #{yq}
</delete>
</mapper>