2025-07-01 11:52:54 +08:00

171 lines
9.8 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.interfaceCommon.mapper.LabPatMapper">
<select id="getLabPatOne">
select * from lab_pat where jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh}
</select>
<select id="getLabPatList" resultType="com.czlis.common.core.domain.entity.LabPat">
select * from lab_pat where where sqh = #{sqh}
</select>
<insert id="insertLabPat">
insert into lab_pat (
<if test="wyh != null and wyh !=''">wyh,</if>
<if test="yblx != null and yblx !=''">yblx,</if>
<if test="fb != null and wyh !=''">fb,</if>
<if test="ksdh != null and ksdh !=''">ksdh,</if>
<if test="sjys != null and sjys !=''">sjys,</if>
<if test="hdys != null and hdys !=''">hdys,</if>
<if test="yhdh != null and yhdh !=''">yhdh,</if>
<if test="brdh != null and brdh !=''">brdh,</if>
<if test="brxm != null and brxm !=''">brxm,</if>
<if test="brxb != null and brxb !=''">brxb,</if>
<if test="brly != null and brly !=''">brly,</if>
<if test="ch != null and ch !=''">ch,</if>
<if test="nl != null">nl,</if>
<if test="nldw != null and nldw != ''">nldw,</if>
<if test="sqh != null and sqh != ''">sqh,</if>
<if test="sqsj != null">sqsj,</if>
<if test="dysj != null">dysj,</if>
<if test="dybz != null and dybz != ''">dybz,</if>
<if test="jgbz != null and jgbz != ''">jgbz,</if>
<if test="bbbz != null and bbbz != ''">bbbz,</if>
<if test="zd != null and zd != ''">zd,</if>
<if test="bz != null and bz != ''">bz,</if>
<if test="bz1 != null and bz1 != ''">bz1,</if>
<if test="zjf != null and zjf != ''">zjf,</if>
<if test="zjf != null and zjf != ''">zjf,</if>
<if test="cyrq != null ">cyrq,</if>
<if test="bq != null and bq != ''">bq,</if>
<if test="czybh != null and czybh != ''">czybh,</if>
<if test="cjbw != null and cjbw != ''">cjbw,</if>
<if test="jymd != null and jymd != ''">jymd,</if>
<if test="lastuser != null and lastuser != ''">lastuser,</if>
<if test="lastdt != null">lastdt,</if>
<if test="confirmer != null and confirmer !=''">confirmer,</if>
<if test="confirmdt != null ">confirmdt,</if>
<if test="mzdy != null and mzdy != ''">mzdy,</if>
<if test="txtval != null and txtval != ''">txtval,</if>
<if test="fslx != null and fslx != ''">fslx,</if>
<if test="ybzt != null and ybzt != ''">ybzt,</if>
<if test="instrid != null and instrid != ''">instrid,</if>
<if test="jzbz != null and jzbz != ''">jzbz,</if>
<if test="sbbr != null and sbbr != ''">sbbr,</if>
<if test="qrr != null and qrr != ''">qrr,</if>
<if test="qrsj != null ">qrsj,</if>
<if test="alarmflag != null and alarmflag != ''">alarmflag,</if>
<if test="alarmconfirm != null and alarmconfirm != ''">alarmconfirm,</if>
<if test="alarmconfirmdt != null ">alarmconfirmdt,</if>
<if test="shcs != null ">shcs,</if>
<if test="sn_tss != null and sn_tss != ''">sn_tss,</if>
<if test="sn_result != null and sn_result != ''">sn_result,</if>
<if test="mzh != null and mzh != ''">mzh,</if>
<if test="yljg != null and yljg != ''">yljg,</if>
<if test="finish != null and finish != ''">finish,</if>
<if test="send_flag != null and send_flag != ''">send_flag,</if>
<if test="sfzh != null and sfzh != ''">sfzh,</if>
<if test="phone != null and phone != ''">phone,</if>
<if test="phone1 != null and phone1 != ''">phone1,</if>
<if test="addr != null and addr != ''">addr,</if>
<if test="faultman != null and faultman != ''">faultman,</if>
<if test="fault != null and fault != ''">fault,</if>
<if test="faults != null and faults != ''">faults,</if>
<if test="faultdt != null">faultdt,</if>
<if test="lstd != null and lstd !=''">lstd,</if>
<if test="zjlx != null and zjlx != ''">zjlx,</if>
<if test="slzq != null and slzq != ''">slzq,</if>
<if test="uploaddate != null">uploaddate,</if>
<if test="lastupdatetime != null">lastupdatetime,</if>
<if test="ylfw != null and ylfw != ''">ylfw,</if>
<if test="upload != null and upload != ''">upload,</if>
<if test="checker != null and checker != ''">checker,</if>
<if test="lisptsc != null and lisptsc != ''">lisptsc,</if>
<if test="autojgbz != null and autojgbz != ''">autojgbz,</if>
<if test="crbsj != null and crbsj != ''">crbsj,</if>
<if test="testName != null and testName != ''">testName,</if>
jyrq,yq,ybh
)
values(
<if test="wyh != null and wyh !=''">#{wyh},</if>
<if test="yblx != null and yblx !=''">#{yblx},</if>
<if test="fb != null and wyh !=''">#{fb},</if>
<if test="ksdh != null and ksdh !=''">#{ksdh},</if>
<if test="sjys != null and sjys !=''">#{sjys},</if>
<if test="hdys != null and hdys !=''">#{hdys},</if>
<if test="yhdh != null and yhdh !=''">#{yhdh},</if>
<if test="brdh != null and brdh !=''">#{brdh},</if>
<if test="brxm != null and brxm !=''">#{brxm},</if>
<if test="brxb != null and brxb !=''">#{brxb},</if>
<if test="brly != null and brly !=''">#{brly},</if>
<if test="ch != null and ch !=''">#{ch},</if>
<if test="nl != null">#{nl},</if>
<if test="nldw != null and nldw != ''">#{nldw},</if>
<if test="sqh != null and sqh != ''">#{sqh},</if>
<if test="sqsj != null">#{sqsj},</if>
<if test="dysj != null">#{dysj},</if>
<if test="dybz != null and dybz != ''">#{dybz},</if>
<if test="jgbz != null and jgbz != ''">#{jgbz},</if>
<if test="bbbz != null and bbbz != ''">#{bbbz},</if>
<if test="zd != null and zd != ''">#{zd},</if>
<if test="bz != null and bz != ''">#{bz},</if>
<if test="bz1 != null and bz1 != ''">#{bz1},</if>
<if test="zjf != null and zjf != ''">#{zjf},</if>
<if test="cyrq != null ">#{cyrq},</if>
<if test="bq != null and bq != ''">#{bq},</if>
<if test="czybh != null and czybh != ''">#{czybh},</if>
<if test="cjbw != null and cjbw != ''">#{cjbw},</if>
<if test="jymd != null and jymd != ''">#{jymd},</if>
<if test="lastuser != null and lastuser != ''">#{lastuser},</if>
<if test="lastdt != null">#{lastdt},</if>
<if test="confirmer != null and confirmer !=''">#{confirmer},</if>
<if test="confirmdt != null ">#{confirmdt},</if>
<if test="mzdy != null and mzdy != ''">#{mzdy},</if>
<if test="txtval != null and txtval != ''">#{txtval},</if>
<if test="fslx != null and fslx != ''">#{fslx},</if>
<if test="ybzt != null and ybzt != ''">#{ybzt},</if>
<if test="instrid != null and instrid != ''">#{instrid},</if>
<if test="jzbz != null and jzbz != ''">#{jzbz},</if>
<if test="sbbr != null and sbbr != ''">#{sbbr},</if>
<if test="qrr != null and qrr != ''">#{qrr},</if>
<if test="qrsj != null ">#{qrsj},</if>
<if test="alarmflag != null and alarmflag != ''">#{alarmflag},</if>
<if test="alarmconfirm != null and alarmconfirm != ''">#{alarmconfirm},</if>
<if test="alarmconfirmdt != null ">#{alarmconfirmdt},</if>
<if test="shcs != null ">#{shcs},</if>
<if test="sn_tss != null and sn_tss != ''">#{sn_tss},</if>
<if test="sn_result != null and sn_result != ''">#{sn_result},</if>
<if test="mzh != null and mzh != ''">#{mzh},</if>
<if test="yljg != null and yljg != ''">#{yljg},</if>
<if test="finish != null and finish != ''">#{finish},</if>
<if test="send_flag != null and send_flag != ''">#{send_flag},</if>
<if test="sfzh != null and sfzh != ''">#{sfzh},</if>
<if test="phone != null and phone != ''">#{phone},</if>
<if test="phone1 != null and phone1 != ''">#{phone1},</if>
<if test="addr != null and addr != ''">#{addr},</if>
<if test="faultman != null and faultman != ''">#{faultman},</if>
<if test="fault != null and fault != ''">#{fault},</if>
<if test="faults != null and faults != ''">#{faults},</if>
<if test="faultdt != null">#{faultdt},</if>
<if test="lstd != null and lstd !=''">#{lstd},</if>
<if test="zjlx != null and zjlx != ''">#{zjlx},</if>
<if test="slzq != null and slzq != ''">#{slzq},</if>
<if test="uploaddate != null">#{uploaddate},</if>
<if test="lastupdatetime != null">#{lastupdatetime},</if>
<if test="ylfw != null and ylfw != ''">#{ylfw},</if>
<if test="upload != null and upload != ''">#{upload},</if>
<if test="checker != null and checker != ''">#{checker},</if>
<if test="lisptsc != null and lisptsc != ''">#{lisptsc},</if>
<if test="autojgbz != null and autojgbz != ''">#{autojgbz},</if>
<if test="crbsj != null and crbsj != ''">#{crbsj},</if>
<if test="testName != null and testName != ''">#{testName},</if>
#{jyrq},#{yq},#{ybh}
)
</insert>
</mapper>