196 lines
9.4 KiB
XML
196 lines
9.4 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.dict.ReportItemMapper">
|
||
|
|
|
||
|
|
<select id="query" resultType="com.czlis.liswork.pojo.XmInfoNew">
|
||
|
|
select * from xm_info_new
|
||
|
|
<where>
|
||
|
|
<if test="yq != null and yq != ''">yq = #{yq}</if>
|
||
|
|
<if test="xmdh != null and xmdh != ''">yq = #{xmdh}</if>
|
||
|
|
</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>
|
||
|
|
<if test="jgjg != null" >jgbz,</if>
|
||
|
|
<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>
|
||
|
|
<if test="jgjg != null" >#{jgbz},</if>
|
||
|
|
<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>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
</mapper>
|