| | |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="fromBy" column="from_by"/> |
| | | <result property="zzsjj" column="zzsjj" typeHandler="com.ltkj.common.mybatis.JsonStringArrayTypeHandler"/> |
| | | <result property="contactPoison" column="contact_poison"/> |
| | | <result property="gongZhong" column="gong_zhong"/> |
| | | <result property="gongLing" column="gong_ling"/> |
| | | <result property="jhgl" column="jhgl"/> |
| | | <result property="contactPoison" column="contact_poison"/> |
| | | <result property="gongZhong" column="gong_zhong"/> |
| | | <result property="gongLing" column="gong_ling"/> |
| | | <result property="jhgl" column="jhgl"/> |
| | | <result property="medicalHistoryIds" column="medical_history_ids"/> |
| | | <result property="medicalHistoryOther" column="medical_history_other"/> |
| | | <result property="dwmc" column="dwmc"/> |
| | | <result property="ygdw" column="ygdw"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="TjAskMedicalHistoryTjAskHistorysResult" type="TjAskMedicalHistory" extends="TjAskMedicalHistoryResult"> |
| | |
| | | <sql id="selectTjAskMedicalHistoryVo"> |
| | | select ask_id, cus_id, cus_name, work, work_status, medical_history, chuchao, jingqi, zhouqi, mociage, zinv, liuchan, |
| | | zaochan, sichan, yichangtai, xiyan, xiyanpinlv, xiyanyear, yinjiu, yinjiupinlv, yinjiuyear, qita, remark, create_by, |
| | | create_time, update_by, update_time, deleted,from_by,zzsjj,contact_poison,gong_zhong,gong_ling,jhgl |
| | | create_time, update_by, update_time, deleted,from_by,zzsjj,contact_poison,gong_zhong,gong_ling,jhgl, |
| | | dwmc, |
| | | ygdw |
| | | from tj_ask_medical_history |
| | | </sql> |
| | | |
| | |
| | | sub_create_time, b.update_by as |
| | | sub_update_by, b.update_time as |
| | | sub_update_time, b.deleted as |
| | | sub_deleted |
| | | sub_deleted, |
| | | a.dwmc, |
| | | a.ygdw |
| | | from tj_ask_medical_history a |
| | | left join tj_ask_historys b on b.ask_id = a.ask_id |
| | | where a.ask_id = #{askId} |
| | |
| | | </if> |
| | | <if test="fromBy != null">from_by, |
| | | </if> |
| | | <if test="dwmc != null">dwmc, |
| | | </if> |
| | | <if test="ygdw != null">ygdw, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="cusId != null">#{cusId}, |
| | |
| | | </if> |
| | | <if test="fromBy != null">#{fromBy}, |
| | | </if> |
| | | <if test="dwmc != null">#{dwmc}, |
| | | </if> |
| | | <if test="ygdw != null">#{ygdw}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="fromBy != null">from_By = |
| | | #{fromBy}, |
| | | </if> |
| | | <if test="dwmc != null">dwmc = |
| | | #{dwmc}, |
| | | </if> |
| | | <if test="ygdw != null">ygdw = |
| | | #{ygdw}, |
| | | </if> |
| | | </trim> |
| | | where ask_id = #{askId} |
| | | </update> |