From 1755b1e774b784a3ed15d9df730ac977461a0e69 Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期二, 13 五月 2025 15:53:47 +0800
Subject: [PATCH] 2025-05-13-2

---
 ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml |   34 ++++++++++++++++++++++++++++------
 1 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml
index 1708d8b..5c684ad 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml
@@ -36,10 +36,14 @@
             <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">
@@ -65,7 +69,9 @@
     <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>
 
@@ -93,7 +99,9 @@
                 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}
@@ -159,6 +167,10 @@
                     </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},
@@ -217,6 +229,10 @@
                     </if>
                     <if test="fromBy != null">#{fromBy},
                     </if>
+            <if test="dwmc != null">#{dwmc},
+            </if>
+            <if test="ygdw != null">#{ygdw},
+            </if>
         </trim>
     </insert>
 
@@ -307,6 +323,12 @@
                     <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>

--
Gitblit v1.8.0