2025-06-16 17:51:03 +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.dict.ReportItemMapper" >
2025-08-07 10:50:59 +08:00
<select id= "query" resultType= "com.czlis.common.core.domain.entity.lis.XmInfoNew" >
2025-06-16 17:51:03 +08:00
select * from xm_info_new
<where >
2025-06-19 16:44:11 +08:00
<if test= "xmid != null and xmid != ''" > and xmid = #{xmid}</if>
2025-10-27 18:16:34 +08:00
<if test= "yq != null and yq != ''" > and yq = #{yq}</if>
<if test= "xmdh != null and xmdh != ''" > and yq = #{xmdh}</if>
<if test= "isWsw != null and isWsw !=''" > <![CDATA[and yqdl <> '细菌仪']]> </if>
2025-10-27 12:51:55 +08:00
<if test= "uflag != null and uflag !=''" > and uflag = #{uflag}</if>
2025-10-27 18:16:34 +08:00
<if test= "xmgl != null and xmgl !=''" > and xmgl = #{xmgl}</if>
<if test= "itemclass != null and itemclass !=''" > and itemclass = #{itemclass}</if>
<if test= "inputcode != null and inputcode !=''" > and (xmdh like '%'+#{inputcode}+'%' or xmmc like '%'+#{inputcode}+'%' or zjf like '%'+#{inputcode}+'%' )</if>
2025-10-31 18:06:42 +08:00
<if test= "yqdl != null and yqdl != ''" > and yqdl = #{yqdl}</if>
2025-09-18 17:58:00 +08:00
</where>
</select>
<select id= "queryXmDouble" resultType= "com.czlis.common.core.domain.entity.lis.XmDouble" >
select * from xm_double
<where >
<if test= "yq != null and yq != ''" > and yq = #{yq}</if>
<if test= "xmdh != null and xmdh != ''" > and xmdh = #{xmdh}</if>
</where>
</select>
<select id= "queryXmValNew" resultType= "com.czlis.common.core.domain.entity.lis.XmValNew" >
select * from xm_val_new
<where >
<if test= "xmid != null" > and xmid = #{xmid}</if>
2025-11-28 18:02:29 +08:00
<if test= "xh != null" > and xh = #{xh}</if>
2025-09-18 17:58:00 +08:00
<if test= "xmdh != null and xmdh != ''" > and xmdh = #{xmdh}</if>
<if test= "qz != null and qz != ''" > and qz = #{qz}</if>
</where>
</select>
<select id= "queryXmInter" resultType= "com.czlis.common.core.domain.entity.lis.XmInter" >
select * from xm_inter
<where >
<if test= "yq !=null and yq !=''" > and yq = #{yq}</if>
2025-10-31 18:06:42 +08:00
<if test= "xmdh !=null and xmdh !=''" > and xmdh = #{xmdh}</if>
2025-10-29 09:25:12 +08:00
<if test= "xmid !=null and xmid !=''" > and xmid = #{xmid}</if>
2025-09-18 17:58:00 +08:00
</where>
</select>
<select id= "queryXmRefNew" resultType= "com.czlis.common.core.domain.entity.lis.XmRefNew" >
select * from xm_ref_new
<where >
<if test= "xmid != null" > and xmid = #{xmid}</if>
<if test= "xmdh != null and xmdh != ''" > and xmdh = #{xmdh}</if>
<if test= "xh != null" > and xh = #{xh}</if>
</where>
</select>
<select id= "queryXmInfoVs" resultType= "com.czlis.common.core.domain.entity.lis.XmInfoVs" >
select * from xm_info_vs
<where >
2025-10-31 18:06:42 +08:00
<if test= "xmid != null" > and xmid = #{xmid}</if>
2025-09-18 17:58:00 +08:00
</where>
</select>
<select id= "queryXmTextresultNew" resultType= "com.czlis.common.core.domain.entity.lis.XmTextresultNew" >
select * from xm_textresult_new
<where >
<if test= "xmid != null" > and xmid = #{xmid}</if>
<if test= "xmdh != null and xmdh != ''" > and xmdh = #{xmdh}</if>
<if test= "xh != null" > and xh = #{xh}</if>
2025-06-16 17:51:03 +08:00
</where>
</select>
<insert id= "addXmInfoNew" >
insert into xm_info_new(
<if test= "yq != null and yq != ''" > yq,</if>
<if test= "xmdh != null and xmdh != ''" > xmdh,</if>
<if test= "xmmc != null and xmmc != ''" > xmmc,</if>
<if test= "zhbdh != null and zhbdh != ''" > zhbdh,</if>
<if test= "bgdh != null and bgdh != ''" > bgdh,</if>
<if test= "cksx != null" > cksx,</if>
<if test= "ckxx != null" > ckxx,</if>
<if test= "dyckz != null and dyckz != ''" > dyckz,</if>
<if test= "dylx != null and dylx != ''" > dylx,</if>
<if test= "dyxh != null " > dyxh,</if>
<if test= "zjf != null and zjf != ''" > zjf,</if>
<if test= "xmlb != null and xmlb != ''" > xmlb,</if>
<if test= "xs != null " > xs,</if>
<if test= "xsws != null " > xsws,</if>
<if test= "mrz != null and mrz != ''" > mrz,</if>
<if test= "jg != null " > jg,</if>
<if test= "cb != null " > cb,</if>
<if test= "dw != null and dw != ''" > dw,</if>
<if test= "jsxm != null and jsxm != ''" > jsxm,</if>
<if test= "jsgs != null and jsgs != ''" > jsgs,</if>
<if test= "zkxm != null and zkxm != ''" > zkxm,</if>
<if test= "sjx != null " > sjx,</if>
<if test= "xjx != null " > xjx,</if>
<if test= "ygxb != null and ygxb=''" > ygxb,</if>
<if test= "ygnl != null and ygnl=''" > ygnl,</if>
<if test= "ygbb != null and ygbb=''" > ygbb,</if>
<if test= "lcyy != null and lcyy=''" > lcyy,</if>
<if test= "jgbz != null and jgbz=''" > jgbz,</if>
2025-06-19 09:17:30 +08:00
<if test= "jgjg != null" > jgjg,</if>
2025-06-16 17:51:03 +08:00
<if test= "jgz != null" > jgz,</if>
<if test= "csff != null and csff != ''" > csff,</if>
<if test= "yymc != null and yymc != ''" > yymc,</if>
<if test= "fzdyxh != null" > fzdyxh,</if>
<if test= "clinicref != null and clinicref != ''" > clinicref,</if>
<if test= "llimit != null " > llimit,</if>
<if test= "hlimit != null " > hlimit,</if>
<if test= "xsbs != null " > xsbs,</if>
<if test= "redoxx != null " > redoxx,</if>
<if test= "redosx != null " > redosx,</if>
<if test= "qcuselog != null and qcuselog != ''" > qcuselog,</if>
<if test= "qcusepos != null and qcusepos != ''" > qcusepos,</if>
<if test= "itemclass != null and itemclass != ''" > itemclass,</if>
<if test= "whocode != null and whocode != ''" > whocode,</if>
<if test= "germflag != null and germflag != ''" > germflag,</if>
<if test= "qccv != null " > qccv,</if>
<if test= "qcvs != null and qcvs != ''" > qcvs,</if>
<if test= "knowledge != null and knowledge != ''" > knowledge,</if>
<if test= "ygzq != null and ygzq != ''" > ygzq,</if>
<if test= "ygzd != null and ygzd != ''" > ygzd,</if>
<if test= "xmgl != null and xmgl != ''" > xmgl,</if>
<if test= "yqdl != null and yqdl != ''" > yqdl,</if>
<if test= "uflag != null and uflag != ''" > uflag,</if>
<if test= "val1 != null and val1 != ''" > val1,</if>
<if test= "val2 != null and val2 != ''" > val2,</if>
<if test= "val3 != null and val3 != ''" > val3,</if>
<if test= "val4 != null and val4 != ''" > val4,</if>
<if test= "val5 != null and val5 != ''" > val5,</if>
xmid
)values (
<if test= "yq != null and yq != ''" > #{yq},</if>
<if test= "xmdh != null and xmdh != ''" > #{xmdh},</if>
<if test= "xmmc != null and xmmc != ''" > #{xmmc},</if>
<if test= "zhbdh != null and zhbdh != ''" > #{zhbdh},</if>
<if test= "bgdh != null and bgdh != ''" > #{bgdh},</if>
<if test= "cksx != null" > #{cksx},</if>
<if test= "ckxx != null" > #{ckxx},</if>
<if test= "dyckz != null and dyckz != ''" > #{dyckz},</if>
<if test= "dylx != null and dylx != ''" > #{dylx},</if>
<if test= "dyxh != null " > #{dyxh},</if>
<if test= "zjf != null and zjf != ''" > #{zjf},</if>
<if test= "xmlb != null and xmlb != ''" > #{xmlb},</if>
<if test= "xs != null " > #{xs},</if>
<if test= "xsws != null " > #{xsws},</if>
<if test= "mrz != null and mrz != ''" > #{mrz},</if>
<if test= "jg != null " > #{jg},</if>
<if test= "cb != null " > #{cb},</if>
<if test= "dw != null and dw != ''" > #{dw},</if>
<if test= "jsxm != null and jsxm != ''" > #{jsxm},</if>
<if test= "jsgs != null and jsgs != ''" > #{jsgs},</if>
<if test= "zkxm != null and zkxm != ''" > #{zkxm},</if>
<if test= "sjx != null " > #{sjx},</if>
<if test= "xjx != null " > #{xjx},</if>
<if test= "ygxb != null and ygxb=''" > #{ygxb},</if>
<if test= "ygnl != null and ygnl=''" > #{ygnl},</if>
<if test= "ygbb != null and ygbb=''" > #{ygbb},</if>
<if test= "lcyy != null and lcyy=''" > #{lcyy},</if>
<if test= "jgbz != null and jgbz=''" > #{jgbz},</if>
2025-06-19 09:17:30 +08:00
<if test= "jgjg != null" > #{jgjg},</if>
2025-06-16 17:51:03 +08:00
<if test= "jgz != null" > #{jgz},</if>
<if test= "csff != null and csff != ''" > #{csff},</if>
<if test= "yymc != null and yymc != ''" > #{yymc},</if>
<if test= "fzdyxh != null" > #{fzdyxh},</if>
<if test= "clinicref != null and clinicref != ''" > #{clinicref},</if>
<if test= "llimit != null " > #{llimit},</if>
<if test= "hlimit != null " > #{hlimit},</if>
<if test= "xsbs != null " > #{xsbs},</if>
<if test= "redoxx != null " > #{redoxx},</if>
<if test= "redosx != null " > #{redosx},</if>
<if test= "qcuselog != null and qcuselog != ''" > #{qcuselog},</if>
<if test= "qcusepos != null and qcusepos != ''" > #{qcusepos},</if>
<if test= "itemclass != null and itemclass != ''" > #{itemclass},</if>
<if test= "whocode != null and whocode != ''" > #{whocode},</if>
<if test= "germflag != null and germflag != ''" > #{germflag},</if>
<if test= "qccv != null " > #{qccv},</if>
<if test= "qcvs != null and qcvs != ''" > #{qcvs},</if>
<if test= "knowledge != null and knowledge != ''" > #{knowledge},</if>
<if test= "ygzq != null and ygzq != ''" > #{ygzq},</if>
<if test= "ygzd != null and ygzd != ''" > #{ygzd},</if>
<if test= "xmgl != null and xmgl != ''" > #{xmgl},</if>
<if test= "yqdl != null and yqdl != ''" > #{yqdl},</if>
<if test= "uflag != null and uflag != ''" > #{uflag},</if>
<if test= "val1 != null and val1 != ''" > #{val1},</if>
<if test= "val2 != null and val2 != ''" > #{val2},</if>
<if test= "val3 != null and val3 != ''" > #{val3},</if>
<if test= "val4 != null and val4 != ''" > #{val4},</if>
<if test= "val5 != null and val5 != ''" > #{val5},</if>
#{xmid}
)
</insert>
<insert id= "addXmDoubleRow" >
insert into xm_double(
<if test= "xmdh != null and xmdh != ''" > xmdh,</if>
<if test= "csms != null and csms != ''" > csms,</if>
<if test= "xmxz != null and xmxz != ''" > xmxz,</if>
<if test= "csbc != null and csbc != ''" > csbc,</if>
<if test= "ckbc != null and ckbc != ''" > ckbc,</if>
<if test= "ydfs != null and ydfs != ''" > ydfs,</if>
<if test= "zbpl != null and zbpl != ''" > zbpl,</if>
<if test= "zbsj != null and zbsj != ''" > zbsj,</if>
<if test= "kbms != null and kbms != ''" > kbms,</if>
<if test= "negxx != null" > negxx,</if>
<if test= "negsx != null" > negsx,</if>
<if test= "posxx != null" > posxx,</if>
<if test= "possx != null" > possx,</if>
<if test= "shq != null" > shq,</if>
<if test= "xhq != null" > xhq,</if>
<if test= "yxgs != null and yxgs != ''" > yxgs,</if>
<if test= "mrmb != null and mrmb != ''" > mrmb,</if>
<if test= "mrsjph != null and mrsjph != ''" > mrsjph,</if>
xmid
)values(
<if test= "xmdh != null and xmdh != ''" > #{xmdh},</if>
<if test= "csms != null and csms != ''" > #{csms},</if>
<if test= "xmxz != null and xmxz != ''" > #{xmxz},</if>
<if test= "csbc != null and csbc != ''" > #{csbc},</if>
<if test= "ckbc != null and ckbc != ''" > #{ckbc},</if>
<if test= "ydfs != null and ydfs != ''" > #{ydfs},</if>
<if test= "zbpl != null and zbpl != ''" > #{zbpl},</if>
<if test= "zbsj != null and zbsj != ''" > #{zbsj},</if>
<if test= "kbms != null and kbms != ''" > #{kbms},</if>
<if test= "negxx != null" > #{negxx},</if>
<if test= "negsx != null" > #{negsx},</if>
<if test= "posxx != null" > #{posxx},</if>
<if test= "possx != null" > #{possx},</if>
<if test= "shq != null" > #{shq},</if>
<if test= "xhq != null" > #{xhq},</if>
<if test= "yxgs != null and yxgs != ''" > #{yxgs},</if>
<if test= "mrmb != null and mrmb != ''" > #{mrmb},</if>
<if test= "mrsjph != null and mrsjph != ''" > #{mrsjph},</if>
#{xmid}
)
</insert>
<insert id= "addXmInterRow" >
insert into xm_inter(
<if test= "xmdh != null and xmdh !=''" > xmdh,</if>
<if test= "xmid != null" > xmid,</if>
yq,tdh
)values(
<if test= "xmdh != null and xmdh != ''" > #{xmdh},</if>
<if test= "xmid != null" > #{xmid},</if>
#{yq},#{tdh}
)
</insert>
2025-11-28 18:02:29 +08:00
<insert id= "addXmRefNewRow" >
2025-06-19 09:17:30 +08:00
insert into xm_ref_new (
<if test= "xb != null and xb != ''" > xb,</if>
<if test= "nl1 != null" > nl1,</if>
<if test= "nl2 != null" > nl2,</if>
<if test= "bblx != null and bblx != ''" > bblx,</if>
<if test= "cksx != null" > cksx,</if>
<if test= "ckxx != null" > ckxx,</if>
<if test= "dyck != null and dyck != ''" > dyck,</if>
<if test= "nldw != null and nldw != ''" > nldw,</if>
<if test= "redoxx != null" > redoxx,</if>
<if test= "redosx != null" > redosx,</if>
<if test= "alterxx != null" > alterxx,</if>
<if test= "altersx != null" > altersx,</if>
<if test= "slzq != null and slzq != ''" > slzq,</if>
<if test= "zd != null and zd != ''" > zd,</if>
<if test= "instrid != null and instrid != ''" > instrid,</if>
<if test= "yq != null and yq != ''" > yq,</if>
xmid,xmdh,xh
)values(
<if test= "xb != null and xb != ''" > #{xb},</if>
<if test= "nl1 != null" > #{nl1},</if>
<if test= "nl2 != null" > #{nl2},</if>
<if test= "bblx != null and bblx != ''" > #{bblx},</if>
<if test= "cksx != null" > #{cksx},</if>
<if test= "ckxx != null" > #{ckxx},</if>
<if test= "dyck != null and dyck != ''" > #{dyck},</if>
<if test= "nldw != null and nldw != ''" > #{nldw},</if>
<if test= "redoxx != null" > #{redoxx},</if>
<if test= "redosx != null" > #{redosx},</if>
<if test= "alterxx != null" > #{alterxx},</if>
<if test= "altersx != null" > #{altersx},</if>
<if test= "slzq != null and slzq != ''" > #{slzq},</if>
<if test= "zd != null and zd != ''" > #{zd},</if>
<if test= "instrid != null and instrid != ''" > #{instrid},</if>
<if test= "yq != null and yq != ''" > #{yq},</if>
#{xmid},#{xmdh},#{xh}
)
</insert>
2025-11-28 18:02:29 +08:00
<insert id= "addXmValNewRow" >
2025-06-19 09:17:30 +08:00
insert into xm_val_new(
<if test= "srm != null and srm != ''" > srm,</if>
<if test= "xh != null" > xh,</if>
<if test= "jgbz != null and jgbz != ''" > jgbz,</if>
xmid,xmdh,qz
)values(
<if test= "srm != null and srm != ''" > #{srm},</if>
<if test= "xh != null" > #{xh},</if>
<if test= "jgbz != null and jgbz != ''" > #{jgbz},</if>
#{xmid},#{xmdh},#{qz}
)
</insert>
2025-06-16 17:51:03 +08:00
2025-06-19 09:17:30 +08:00
<insert id= "addXmTextResultRow" >
insert into xm_textresult_new(
<if test= "textresult != null and textresult != ''" > textresult,</if>
<if test= "reserve != null and reserve != ''" > reserve,</if>
<if test= "yxjs != null and yxjs != ''" > yxjs,</if>
<if test= "cjyy != null and cjyy != ''" > cjyy,</if>
<if test= "zd != null and zd != ''" > zd,</if>
xmid,xmdh,xh
)values(
<if test= "textresult != null and textresult != ''" > #{textresult},</if>
<if test= "reserve != null and reserve != ''" > #{reserve},</if>
<if test= "yxjs != null and yxjs != ''" > #{yxjs},</if>
<if test= "cjyy != null and cjyy != ''" > #{cjyy},</if>
<if test= "zd != null and zd != ''" > #{zd},</if>
#{xmid},#{xmdh},#{xh}
)
</insert>
<delete id= "deleteXmInfoNew" >
delete from xm_info_new where xmid = #{xmid}
<if test= "yq != null and yq != ''" > and yq = #{yq}</if>
<if test= "xmdh != null and xmdh != ''" > and xmdh = #{xmdh}</if>
</delete>
<delete id= "deleteXmDouble" >
delete from xm_double where yq = #{yq} and xmdh =#{xmdh}
</delete>
<delete id= "deleteXmInter" >
delete from xm_inter where xmid = #{xmid}
</delete>
<delete id= "deleteXmTextResult" >
delete from xm_textresult_new where xmid = #{xmid}
</delete>
<delete id= "deleteXmRef" >
delete from xm_ref_new where xmid = #{xmid}
</delete>
2025-11-28 18:02:29 +08:00
<delete id= "deleteXmValNew" >
2025-06-19 09:17:30 +08:00
delete from xm_val_new where xmid = #{xmid}
2025-11-28 18:02:29 +08:00
<if test= "xh != null" > and xh = #{xh}</if>
2025-06-19 09:17:30 +08:00
</delete>
<select id= "getXmInfoVsCount" resultType= "Long" >
select count(1) from xm_info_vs where xmid = #{xmid}
</select>
2025-06-16 17:51:03 +08:00
2025-06-19 09:17:30 +08:00
<update id= "updateXmInfoNew" >
update xm_info_new
<set >
<if test= "yq != null and yq != ''" > yq = #{yq},</if>
<if test= "xmdh != null and xmdh != ''" > xmdh = #{xmdh},</if>
<if test= "xmmc != null and xmmc != ''" > xmmc = #{xmmc},</if>
<if test= "zhbdh != null and zhbdh != ''" > zhbdh = #{zhbdh},</if>
<if test= "bgdh != null and bgdh != ''" > bgdh = #{bgdh},</if>
<if test= "cksx != null" > cksx = #{cksx},</if>
<if test= "ckxx != null" > ckxx = #{ckxx},</if>
<if test= "dyckz != null and dyckz != ''" > dyckz = #{dyckz},</if>
<if test= "dylx != null and dylx != ''" > dylx = #{dylx},</if>
<if test= "dyxh != null " > dyxh = #{dylx},</if>
<if test= "zjf != null and zjf != ''" > zjf = #{zjf},</if>
<if test= "xmlb != null and xmlb != ''" > xmlb = #{xmlb},</if>
<if test= "xs != null " > xs = #{xs},</if>
<if test= "xsws != null " > xsws = #{xsws},</if>
<if test= "mrz != null and mrz != ''" > mrz = #{mrz},</if>
<if test= "jg != null " > jg = #{jg},</if>
<if test= "cb != null " > cb = #{cb},</if>
<if test= "dw != null and dw != ''" > dw = #{dw},</if>
<if test= "jsxm != null and jsxm != ''" > jsxm = #{jsxm},</if>
<if test= "jsgs != null and jsgs != ''" > jsgs = #{jsgs},</if>
<if test= "zkxm != null and zkxm != ''" > zkxm = #{zkxm},</if>
<if test= "sjx != null " > sjx = #{sjx},</if>
<if test= "xjx != null " > xjx = #{xjx},</if>
<if test= "ygxb != null and ygxb=''" > ygxb = #{ygxb},</if>
<if test= "ygnl != null and ygnl=''" > ygnl = #{ygnl},</if>
<if test= "ygbb != null and ygbb=''" > ygbb = #{ygbb},</if>
<if test= "lcyy != null and lcyy=''" > lcyy = #{lcyy},</if>
<if test= "jgbz != null and jgbz=''" > jgbz = #{jgbz},</if>
<if test= "jgjg != null" > jgjg = #{jgjg},</if>
<if test= "jgz != null" > jgz = #{jgz},</if>
<if test= "csff != null and csff != ''" > csff = #{csff},</if>
<if test= "yymc != null and yymc != ''" > yymc = #{yymc},</if>
<if test= "fzdyxh != null" > fzdyxh = #{fzdyxh},</if>
<if test= "clinicref != null and clinicref != ''" > clinicref = #{clinicref},</if>
<if test= "llimit != null " > llimit = #{llimit},</if>
<if test= "hlimit != null " > hlimit = #{hlimit},</if>
<if test= "xsbs != null " > xsbs = #{xsbs},</if>
<if test= "redoxx != null " > redoxx = #{redoxx},</if>
<if test= "redosx != null " > redosx = #{redosx},</if>
<if test= "qcuselog != null and qcuselog != ''" > qcuselog = #{qcuselog},</if>
<if test= "qcusepos != null and qcusepos != ''" > qcusepos = #{qcusepos},</if>
<if test= "itemclass != null and itemclass != ''" > itemclass = #{itemclass},</if>
<if test= "whocode != null and whocode != ''" > whocode = #{whocode},</if>
<if test= "germflag != null and germflag != ''" > germflag = #{germflag},</if>
<if test= "qccv != null " > qccv = #{qccv},</if>
<if test= "qcvs != null and qcvs != ''" > qcvs = #{qcvs},</if>
<if test= "knowledge != null and knowledge != ''" > knowledge = #{knowledge},</if>
<if test= "ygzq != null and ygzq != ''" > ygzq = #{ygzq},</if>
<if test= "ygzd != null and ygzd != ''" > ygzd = #{ygzd},</if>
<if test= "xmgl != null and xmgl != ''" > xmgl = #{xmgl},</if>
<if test= "yqdl != null and yqdl != ''" > yqdl = #{yqdl},</if>
<if test= "uflag != null and uflag != ''" > uflag = #{uflag},</if>
<if test= "val1 != null and val1 != ''" > val1 = #{val1},</if>
<if test= "val2 != null and val2 != ''" > val2 = #{val2},</if>
<if test= "val3 != null and val3 != ''" > val3 = #{val3},</if>
<if test= "val4 != null and val4 != ''" > val4 = #{val4},</if>
<if test= "val5 != null and val5 != ''" > val5 = #{val5},</if>
</set>
where xmid = #{xmid}
</update>
2025-06-19 16:44:11 +08:00
<update id= "updateXmDoubleRow" >
update xm_double
<set >
<if test= "xmdh != null and xmdh != ''" > xmdh = #{xmdh},</if>
<if test= "csms != null and csms != ''" > csms = #{csms},</if>
<if test= "xmxz != null and xmxz != ''" > xmxz = #{xmxz},</if>
<if test= "csbc != null and csbc != ''" > csbc = #{csbc},</if>
<if test= "ckbc != null and ckbc != ''" > ckbc = #{ckbc},</if>
<if test= "ydfs != null and ydfs != ''" > ydfs = #{ydfs},</if>
<if test= "zbpl != null and zbpl != ''" > zbpl = #{zbpl},</if>
<if test= "zbsj != null and zbsj != ''" > zbsj = #{zbsj},</if>
<if test= "kbms != null and kbms != ''" > kbms = #{kbms},</if>
<if test= "negxx != null" > negxx = #{negxx},</if>
<if test= "negsx != null" > negsx = #{negsx},</if>
<if test= "posxx != null" > posxx = #{posxx},</if>
<if test= "possx != null" > possx = #{possx},</if>
<if test= "shq != null" > shq = #{shq},</if>
<if test= "xhq != null" > xhq = #{xhq},</if>
<if test= "yxgs != null and yxgs != ''" > yxgs = #{yxgs},</if>
<if test= "mrmb != null and mrmb != ''" > mrmb = #{mrmb},</if>
<if test= "mrsjph != null and mrsjph != ''" > mrsjph = #{mrsjph},</if>
</set>
where yq = #{yq} and xmdh = #{xmdh}
</update>
<update id= "updateXmInterRow" >
update xm_inter
<set >
<if test= "xmdh != null and xmdh !=''" > xmdh = #{xmdh},</if>
yq = #{yq},tdh = #{tdh}
</set>
where xmid = #{xmid}
</update>
2025-11-28 18:02:29 +08:00
<update id= "updateXmRefNewRow" >
2025-06-19 16:44:11 +08:00
update xm_ref_new
<set >
<if test= "xb != null and xb != ''" > xb = #{xb},</if>
<if test= "nl1 != null" > nl1 = #{nl1},</if>
<if test= "nl2 != null" > nl2 = #{nl2},</if>
<if test= "bblx != null and bblx != ''" > bblx = #{bblx},</if>
<if test= "cksx != null" > cksx = #{cksx},</if>
<if test= "ckxx != null" > ckxx = #{ckxx},</if>
<if test= "dyck != null and dyck != ''" > dyck = #{dyck},</if>
<if test= "nldw != null and nldw != ''" > nldw = #{nldw},</if>
<if test= "redoxx != null" > redoxx = #{redoxx},</if>
<if test= "redosx != null" > redosx = #{redosx},</if>
<if test= "alterxx != null" > alterxx = #{alterxx},</if>
<if test= "altersx != null" > altersx = #{altersx},</if>
<if test= "slzq != null and slzq != ''" > slzq = #{slzq},</if>
<if test= "zd != null and zd != ''" > zd = #{zd},</if>
<if test= "instrid != null and instrid != ''" > instrid = #{instrid},</if>
<if test= "yq != null and yq != ''" > yq = #{yq},</if>
xmid = #{xmid},xmdh = #{xmdh},xh = #{xh}
</set>
where xmid = #{xmid}
</update>
2025-11-28 18:02:29 +08:00
<update id= "updateXmValNewRow" >
2025-06-19 16:44:11 +08:00
update xm_val_new
<set >
<if test= "srm != null and srm != ''" > srm = #{srm},</if>
<if test= "jgbz != null and jgbz != ''" > jgbz = #{jgbz},</if>
xmdh = #{xmdh},qz = #{qz}
</set>
2025-11-28 18:02:29 +08:00
where xmid = #{xmid} and xh = #{xh}
2025-06-19 16:44:11 +08:00
</update>
<update id= "updateXmTextResultRow" >
update xm_textresult_new
<set >
<if test= "textresult != null and textresult != ''" > textresult #{textresult},</if>
<if test= "reserve != null and reserve != ''" > reserve = #{reserve},</if>
<if test= "yxjs != null and yxjs != ''" > yxjs = #{yxjs},</if>
<if test= "cjyy != null and cjyy != ''" > cjyy = #{cjyy},</if>
<if test= "zd != null and zd != ''" > zd,</if>
xmid,xmdh,xh
</set>
where xmid = #{xmid}
</update>
<insert id= "addXmInfoVs" >
insert into xm_info_vs(
<if test= "dylx != null and dylx != ''" > dylx,</if>
<if test= "dyxh != null " > dyxh,</if>
<if test= "uflag != null and uflag != ''" > uflag,</if>
<if test= "xs != null" > xs,</if>
<if test= "xsws != null" > xsws,</if>
<if test= "fzdyxh != null" > fzdyxh,</if>
<if test= "zkxm != null and zkxm != ''" > zkxm,</if>
<if test= "qccv != null and qccv != ''" > qccv,</if>
<if test= "qcvs != null and qcvs != ''" > qcvs,</if>
xmid,yq,xmid
)values(
<if test= "dylx != null and dylx != ''" > #{dylx},</if>
<if test= "dyxh != null " > #{dyxh},</if>
<if test= "uflag != null and uflag != ''" > #{uflag},</if>
<if test= "xs != null" > #{xs},</if>
<if test= "xsws != null" > #{xsws},</if>
<if test= "fzdyxh != null" > #{fzdyxh},</if>
<if test= "zkxm != null and zkxm != ''" > #{zkxm},</if>
<if test= "qccv != null and qccv != ''" > #{qccv},</if>
<if test= "qcvs != null and qcvs != ''" > #{qcvs},</if>
#{xmid},#{yq},#{xmid}
)
</insert>
<delete id= "deleteXmInfoVs" >
delete from xm_info_vs where vsid = #{vsid}
</delete>
2025-09-17 18:02:11 +08:00
<select id= "getXmFilter" resultType= "com.czlis.common.core.domain.entity.lis.XmFilter" >
select * from xm_filter
<where >
<if test= "yq != null and yq != ''" > and yq = #{yq}</if>
</where>
</select>
<insert id= "addXmFilter" >
insert into xm_filter(
yq,lgph,bc
)values(
#{yq},#{lgph},#{bc}
)
</insert>
<delete id= "deleteXmFilter" >
delete from xm_filter where yq = #{yq} and lgph = #{lgph}
</delete>
<select id= "getXmLot" resultType= "com.czlis.common.core.domain.entity.lis.XmLot" >
select * from xm_lot
<where >
<if test= "yq != null and yq != ''" > and yq = #{yq}</if>
<if test= "sjph != null and sjph != ''" > and sjph = #{sjph}</if>
</where>
</select>
<insert id= "addXmLot" >
insert into xm_lot(
yq,sjph,sjcs,yxq,csff
)values(
#{yq},#{sjph},#{yxq},#{csff}
)
</insert>
<delete id= "deleteXmLot" >
delete from xm_log where yq = #{yq} and sjph = #{sjph}
</delete>
2025-11-07 17:54:57 +08:00
<select id= "queryXmAlarmdetailNew" resultType= "com.czlis.common.core.domain.entity.lis.XmAlarmdetailNew" >
select * from xm_alarmdetail_new
<where >
<if test= "xmid != null" > and xmid = #{xmid}</if>
<if test= "seq != null" > and seq = #{seq}</if>
</where>
</select>
<insert id= "addXmAlarmdetailNew" >
insert into xm_alarmdetail_new(
<if test= "samplecondition != null and samplecondition != ''" > samplecondition,</if>
<if test= "resultcondition != null and resultcondition != ''" > resultcondition,</if>
xmid, seq
)values(
<if test= "samplecondition != null and samplecondition != ''" > #{samplecondition},</if>
<if test= "resultcondition != null and resultcondition != ''" > #{resultcondition},</if>
#{xmid},#{seq})
</insert>
<update id= "updateXmAlarmdetailNew" >
update xm_alarmdetail_new
<set >
<if test= "samplecondition != null and samplecondition != ''" > samplecondition = #{samplecondition},</if>
<if test= "resultcondition != null and resultcondition != ''" > resultcondition = #{resultcondition},</if>
xmid = #{xmid}
</set>
where xmid = #{xmid} and seq = #{seq}
</update>
<delete id= "delXmAlarmdetailNew" >
delete from xm_alarmdetail_new where xmid = #{xmid} and seq = #{seq}
</delete>
2025-06-16 17:51:03 +08:00
</mapper>