123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409 |
- <?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.sooka.mapper.Guiji_Healthcommission_Mapper2">
- <sql id="global_name">
- id,create_time,cd_time,cd_batch,cd_operation,cd_source,
- </sql>
- <sql id="global_value">
- #{id},now(),#{cd_time},#{cd_batch},#{cd_operation},#{cd_source},
- </sql>
- <sql id="update_sql">
- create_time = now(),cd_batch = #{cd_batch},cd_operation = #{cd_operation},cd_source =#{cd_source},
- </sql>
- <parameterMap id="pm_xx" type="com.sooka.model.bo.Guiji_healthcommission_xx_Bean">
- </parameterMap>
- <insert id="add_guiji_healthcommission_xx" parameterMap="pm_xx">
- insert into t_guiji_healthcommission_xx (
- <include refid="global_name"></include>
- name,idcardnum,sexid,birthday,address,fmname,chname,donkind,doncode,volume,abo,
- rhd,collectdate,collectplace,organname,organtel
- )
- values (
- <include refid="global_value"></include>
- #{Name},#{IDCardNum},#{SexID},#{Birthday},#{Address},#{FMName},#{CHName},#{DonCode},#{DonKind},
- #{Volume},#{ABO},#{RhD},#{CollectDate},#{CollectPlace},#{OrganName},#{OrganTel})
- </insert>
- <update id="update_guiji_healthcommission_xx" parameterMap="pm_xx">
- update t_guiji_healthcommission_xx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="Name != null and Name != ''">
- Name = #{Name},
- </if>
- <if test="IDCardNum != null and IDCardNum != ''">
- IDCardNum = #{IDCardNum},
- </if>
- <if test="SexID != null and SexID != ''">
- SexID = #{SexID},
- </if>
- <if test="Birthday != null and Birthday != ''">
- Birthday = #{Birthday},
- </if>
- <if test="Address != null and Address != ''">
- Address = #{Address},
- </if>
- <if test="FMName != null and FMName != ''">
- FMName = #{FMName},
- </if>
- <if test="CHName != null and CHName != ''">
- CHName = #{CHName},
- </if>
- <if test="DonCode != null and DonCode != ''">
- DonCode = #{DonCode},
- </if>
- <if test="DonKind != null and DonKind != ''">
- DonKind = #{DonKind},
- </if>
- <if test="Volume != null and Volume != ''">
- Volume = #{Volume},
- </if>
- <if test="ABO != null and ABO != ''">
- ABO = #{ABO},
- </if>
- <if test="RhD != null and RhD != ''">
- RhD = #{RhD},
- </if>
- <if test="CollectDate != null and CollectDate != ''">
- CollectDate = #{CollectDate},
- </if>
- <if test="CollectPlace != null and CollectPlace != ''">
- CollectPlace = #{CollectPlace},
- </if>
- <if test="OrganName != null and OrganName != ''">
- OrganName = #{OrganName},
- </if>
- <if test="OrganTel != null and OrganTel != ''">
- OrganTel = #{OrganTel},
- </if>
- </trim>
- where id = #{id}
- </update>
- <parameterMap id="pm_yyryxx" type="com.sooka.model.bo.Guiji_healthcommission_yyryxx_Bean"></parameterMap>
- <insert id="add_guiji_healthcommission_yyryxx" parameterMap="pm_yyryxx">
- insert into t_guiji_healthcommission_yyryxx (
- <include refid="global_name"></include>
- CardID,PersonType,UnitName,UserName,Sex,Age,Nature,Education,CellPhone,WorkType,
- WorkAge,UnitNatrue,PhotoUrl,LicenseUrl,AddDate,AppTime)
- values (
- <include refid="global_value"></include>
- #{CardID},#{PersonType},#{UnitName},#{UserName},#{Sex},#{Age},#{Nature},
- #{Education},#{CellPhone},
- #{WorkType},#{WorkAge},#{UnitNatrue},#{PhotoUrl},#{LicenseUrl},#{AddDate},#{AppTime}
- )
- </insert>
- <update id="update_guiji_healthcommission_yyryxx" parameterMap="pm_yyryxx">
- update t_guiji_healthcommission_yyryxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="CardID != null and CardID != ''">
- CardID = #{CardID},
- </if>
- <if test="PersonType != null and PersonType != ''">
- PersonType= #{PersonType},
- </if>
- <if test="UnitName != null and UnitName != ''">
- UnitName = #{UnitName},
- </if>
- <if test="UserName != null and UserName != ''">
- UserName = #{UserName},
- </if>
- <if test="Sex != null and Sex != ''">
- Sex = #{Sex},
- </if>
- <if test="Age != null and Age != ''">
- Age = #{Age},
- </if>
- <if test="Nature != null and Nature != ''">
- Nature = #{Nature},
- </if>
- <if test="Education != null and Education != ''">
- Education = #{Education},
- </if>
- <if test="CellPhone != null and CellPhone != ''">
- CellPhone = #{CellPhone},
- </if>
- <if test="WorkType != null and WorkType != ''">
- WorkType = #{WorkType},
- </if>
- <if test="WorkAge != null and WorkAge != ''">
- WorkAge = #{WorkAge},
- </if>
- <if test="UnitNatrue != null and UnitNatrue != ''">
- UnitNatrue = #{UnitNatrue},
- </if>
- <if test="PhotoUrl != null and PhotoUrl != ''">
- PhotoUrl = #{PhotoUrl},
- </if>
- <if test="LicenseUrl != null and LicenseUrl != ''">
- LicenseUrl = #{LicenseUrl},
- </if>
- <if test="AddDate != null and AddDate != ''">
- AddDate = #{AddDate},
- </if>
- <if test="AppTime != null and AppTime != ''">
- AppTime = #{AppTime},
- </if>
- </trim>
- where ID=#{id}
- </update>
- <parameterMap id="pm_tjxx" type="com.sooka.model.bo.Guiji_healthcommission_tjxx_Bean"></parameterMap>
- <insert id="add_guiji_healthcommission_tjxx" parameterMap="pm_tjxx">
- insert into t_guiji_healthcommission_tjxx (
- <include refid="global_name"></include>
- CardID,PersonType,UnitName,UserName,Sex,Age,Nature,Education,CellPhone,WorkType,WorkAge,
- UnitNatrue,PhotoUrl,LicenseUrl,AddDate,AppTime,I_Checked,I_CheckUser,Y_Checked,Y_CheckUser,
- H_LEVlgM,H_JiaGan,H_XQZYM,H_LiJiGanJun,H_ShangHan,
- H_MeiDu,H_HIV,H_Conclusion,H_Checked,H_CheckUser,
- T_HasGanYan,T_GanYan,T_HasShangHan,T_ShangHan,T_HasLiJi,
- T_LiJi,T_HasFeiJieHe,T_FeiJieHe,T_HasPiFuBing,
- T_PiFuBing,T_HasOtherDisease,T_OtherDisease,T_Xin,T_Gan,T_Pi,T_Fei,T_PiFu,
- T_Other,T_X,T_Phenomenon,X_Checked,X_CheckUser,T_Conclusion,T_Checked,T_CheckUser,
- B_Checked,B_CheckUser,C_Checked,C_CheckUser)
- values (
- <include refid="global_value"></include>
- #{CardID},#{PersonType},#{UnitName},#{UserName},#{Sex},#{Age},#{Nature},#{Education},
- #{CellPhone},#{WorkType},#{WorkAge},#{UnitNatrue},#{PhotoUrl},#{LicenseUrl},
- #{AddDate},#{AppTime},#{I_Checked},#{I_CheckUser},#{Y_Checked},#{Y_CheckUser},
- #{H_LEVlgM},#{H_JiaGan},#{H_XQZYM},#{H_LiJiGanJun},#{H_ShangHan},#{H_MeiDu},
- #{H_HIV},#{H_Conclusion},#{H_Checked},#{H_CheckUser},
- #{T_HasGanYan},#{T_GanYan},#{T_HasShangHan},#{T_ShangHan},#{T_HasLiJi},
- #{T_LiJi},#{T_HasFeiJieHe},#{T_FeiJieHe},#{T_HasPiFuBing},#{T_PiFuBing},#{T_HasOtherDisease},
- #{T_OtherDisease},#{T_Xin},#{T_Gan},#{T_Pi},#{T_Fei},#{T_PiFu},#{T_Other},
- #{T_X},#{T_Phenomenon},#{X_Checked},#{X_CheckUser},#{T_Conclusion},#{T_Checked},
- #{T_CheckUser},#{B_Checked},#{B_CheckUser},#{C_Checked},#{C_CheckUser})
- </insert>
- <update id="update_guiji_healthcommission_tjxx">
- update t_guiji_healthcommission_tjxx
- <trim prefix="SET" suffixOverrides=",">
- <include refid="update_sql"></include>
- <if test="CardID != null and CardID!= ''">
- CardID = #{CardID},
- </if>
- <if test="PersonType != null and PersonType != ''">
- PersonType = #{PersonType},
- </if>
- <if test="UnitName != null and UnitName != ''">
- UnitName = #{UnitName},
- </if>
- <if test="UserName != null and UserName != ''">
- UserName = #{UserName},
- </if>
- <if test="Sex != null and Sex != ''">
- Sex = #{Sex},
- </if>
- <if test="Age != null and Age != ''">
- Age = #{Age},
- </if>
- <if test="Nature != null and Nature != ''">
- Nature = #{Nature},
- </if>
- <if test="Education != null and Education != ''">
- Education = #{Education},
- </if>
- <if test="CellPhone != null and CellPhone != ''">
- CellPhone = #{CellPhone},
- </if>
- <if test="WorkType != null and WorkType != ''">
- WorkType = #{WorkType},
- </if>
- <if test="WorkAge != null and WorkAge != ''">
- WorkAge = #{WorkAge},
- </if>
- <if test="UnitNatrue != null and UnitNatrue != ''">
- UnitNatrue = #{UnitNatrue},
- </if>
- <if test="PhotoUrl != null and PhotoUrl != ''">
- PhotoUrl = #{PhotoUrl},
- </if>
- <if test="LicenseUrl != null and LicenseUrl != ''">
- LicenseUrl = #{LicenseUrl},
- </if>
- <if test="AddDate != null and AddDate != ''">
- AddDate = #{AddDate},
- </if>
- <if test="AppTime != null and AppTime != ''">
- AppTime = #{AppTime},
- </if>
- <if test="I_Checked != null and I_Checked != ''">
- I_Checked = #{I_Checked},
- </if>
- <if test="I_CheckUser != null and I_CheckUser != ''">
- I_CheckUser = #{I_CheckUser},
- </if>
- <if test="Y_Checked != null and Y_Checked != ''">
- Y_Checked = #{Y_Checked},
- </if>
- <if test="Y_CheckUser != null and Y_CheckUser != ''">
- Y_CheckUser = #{Y_CheckUser},
- </if>
- <if test="H_LEVlgM != null and H_LEVlgM != ''">
- H_LEVlgM = #{H_LEVlgM},
- </if>
- <if test="H_JiaGan != null and H_JiaGan != ''">
- H_JiaGan = #{H_JiaGan},
- </if>
- <if test="H_XQZYM != null and H_XQZYM != ''">
- H_XQZYM = #{H_XQZYM},
- </if>
- <if test="H_LiJiGanJun != null and H_LiJiGanJun != ''">
- H_LiJiGanJun = #{H_LiJiGanJun},
- </if>
- <if test="H_ShangHan != null and H_ShangHan != ''">
- H_ShangHan = #{H_ShangHan},
- </if>
- <if test="H_MeiDu != null and H_MeiDu != ''">
- H_MeiDu = #{H_MeiDu},
- </if>
- <if test="H_HIV != null and H_HIV != ''">
- H_HIV = #{H_HIV},
- </if>
- <if test="H_Conclusion != null and H_Conclusion != ''">
- H_Conclusion = #{H_Conclusion},
- </if>
- <if test="H_Checked != null and H_Checked != ''">
- H_Checked = #{H_Checked},
- </if>
- <if test="H_CheckUser != null and H_CheckUser != ''">
- H_CheckUser = #{H_CheckUser},
- </if>
- <if test="T_HasGanYan != null and T_HasGanYan != ''">
- T_HasGanYan = #{T_HasGanYan},
- </if>
- <if test="T_GanYan != null and T_GanYan != ''">
- T_GanYan = #{T_GanYan},
- </if>
- <if test="T_HasShangHan != null and T_HasShangHan != ''">
- T_HasShangHan = #{T_HasShangHan},
- </if>
- <if test="T_ShangHan != null and T_ShangHan != ''">
- T_ShangHan = #{T_ShangHan},
- </if>
- <if test="T_HasLiJi != null and T_HasLiJi != ''">
- T_HasLiJi = #{T_HasLiJi},
- </if>
- <if test="T_LiJi != null and T_LiJi != ''">
- T_LiJi = #{T_LiJi},
- </if>
- <if test="T_HasFeiJieHe != null and T_HasFeiJieHe != ''">
- T_HasFeiJieHe = #{T_HasFeiJieHe},
- </if>
- <if test="T_FeiJieHe != null and T_FeiJieHe != ''">
- T_FeiJieHe = #{T_FeiJieHe},
- </if>
- <if test="T_HasPiFuBing != null and T_HasPiFuBing != ''">
- T_HasPiFuBing = #{T_HasPiFuBing},
- </if>
- <if test="T_PiFuBing != null and T_PiFuBing != ''">
- T_PiFuBing = #{T_PiFuBing},
- </if>
- <if test="T_HasOtherDisease != null and T_HasOtherDisease != ''">
- T_HasOtherDisease = #{T_HasOtherDisease},
- </if>
- <if test="T_OtherDisease != null and T_OtherDisease != ''">
- T_OtherDisease = #{T_OtherDisease},
- </if>
- <if test="T_Xin != null and T_Xin != ''">
- T_Xin = #{T_Xin},
- </if>
- <if test="T_Gan != null and T_Gan != ''">
- T_Gan = #{T_Gan},
- </if>
- <if test="T_Pi != null and T_Pi != ''">
- T_Pi = #{T_Pi},
- </if>
- <if test="T_Fei != null and T_Fei != ''">
- T_Fei = #{T_Fei},
- </if>
- <if test="T_PiFu != null and T_PiFu != ''">
- T_PiFu = #{T_PiFu},
- </if>
- <if test="T_Other != null and T_Other != ''">
- T_Other = #{T_Other},
- </if>
- <if test="T_X != null and T_X != ''">
- T_X = #{T_X},
- </if>
- <if test="T_Phenomenon != null and T_Phenomenon != ''">
- T_Phenomenon = #{T_Phenomenon},
- </if>
- <if test="X_Checked != null and X_Checked != ''">
- X_Checked = #{X_Checked},
- </if>
- <if test="X_CheckUser != null and X_CheckUser != ''">
- X_CheckUser = #{X_CheckUser},
- </if>
- <if test="T_Conclusion != null and T_Conclusion != ''">
- T_Conclusion = #{T_Conclusion},
- </if>
- <if test="T_Checked != null and T_Checked != ''">
- T_Checked = #{T_Checked},
- </if>
- <if test="T_CheckUser != null and T_CheckUser != ''">
- T_CheckUser = #{T_CheckUser},
- </if>
- <if test="B_Checked != null and B_Checked != ''">
- B_Checked = #{B_Checked},
- </if>
- <if test="B_CheckUser != null and B_CheckUser != ''">
- B_CheckUser = #{B_CheckUser},
- </if>
- <if test="C_Checked != null and C_Checked != ''">
- C_Checked = #{C_Checked},
- </if>
- <if test="C_CheckUser != null and C_CheckUser != ''">
- C_CheckUser = #{C_CheckUser},
- </if>
- </trim>
- where id = #{id}
- </update>
- <resultMap id="rm_xx" type="com.sooka.model.bo.Guiji_healthcommission_xx_Bean"></resultMap>
- <select id="select_guiji_healthcommission_xx" resultMap="rm_xx" parameterMap="pm_xx">
- select name,idcardnum,sexid,birthday,address,fmname,chname,donkind,doncode,volume,abo,
- rhd,collectdate,collectplace,organname,organtel from t_guiji_healthcommission_xx
- where 1=1
- <if test="Name != null and Name != ''">
- and name = #{name}
- </if>
- <if test="IDCardNum != null and IDCardNum != ''">
- and idcardnum = #{idcardnum}
- </if>
- </select>
- <resultMap id="rm_tjxx" type="com.sooka.model.bo.Guiji_healthcommission_tjxx_Bean"></resultMap>
- <select id="select_guiji_healthcommission_tjxx" parameterMap="pm_tjxx" resultMap="rm_tjxx">
- select
- CardID,PersonType,UnitName,UserName,Sex,Age,Nature,Education,CellPhone,WorkType,WorkAge,
- UnitNatrue,PhotoUrl,LicenseUrl,AddDate,AppTime,I_Checked,I_CheckUser,Y_Checked,Y_CheckUser,
- H_LEVlgM,H_JiaGan,H_XQZYM,H_LiJiGanJun,H_ShangHan,
- H_MeiDu,H_HIV,H_Conclusion,H_Checked,H_CheckUser,
- T_HasGanYan,T_GanYan,T_HasShangHan,T_ShangHan,T_HasLiJi,
- T_LiJi,T_HasFeiJieHe,T_FeiJieHe,T_HasPiFuBing,
- T_PiFuBing,T_HasOtherDisease,T_OtherDisease,T_Xin,T_Gan,T_Pi,T_Fei,T_PiFu,
- T_Other,T_X,T_Phenomenon,X_Checked,X_CheckUser,T_Conclusion,T_Checked,T_CheckUser,
- B_Checked,B_CheckUser,C_Checked,C_CheckUser
- from t_guiji_healthcommission_tjxx where 1=1
- <if test="UserName != null and UserName != ''">
- and UserName = #{UserName}
- </if>
- <if test="CardID != null and CardID != null">
- and CardID = #{CardID}
- </if>
- </select>
- </mapper>
|