From e14e4217b3f53a5cad511b4331cd7c0a40a40db2 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期四, 19 十二月 2024 13:52:03 +0800
Subject: [PATCH] zjh202412019

---
 ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
index 7cd5ac3..8500345 100644
--- a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
@@ -31,6 +31,10 @@
         <result property="idType" column="id_type"/>
         <result property="ageUnit" column="age_unit"/>
         <result property="career" column="career"/>
+        <result property="dwPhone" column="dw_phone"/>
+        <result property="pym" column="pym"/>
+        <result property="dictCompId" column="dict_comp_id"/>
+        <result property="compName" column="comp_name"/>
     </resultMap>
 
     <sql id="selectTjCustomerVo">
@@ -59,7 +63,9 @@
                age,
                id_type,
                age_unit,
-               career
+               career,
+               dw_phone,
+               pym,dict_comp_id,comp_name
         from tj_customer
     </sql>
 
@@ -81,6 +87,9 @@
             <if test="cusIntroduce != null  and cusIntroduce != ''">and cus_introduce = #{cusIntroduce}</if>
             <if test="cusNumber != null ">and cus_number = #{cusNumber}</if>
             <if test="cusIsvip != null  and cusIsvip != ''">and cus_isvip = #{cusIsvip}</if>
+            <if test="pym != null  and pym != ''">and pym = #{pym}</if>
+            <if test="dictCompId != null  and dictCompId != ''">and dict_comp_id = #{dictCompId}</if>
+            <if test="compName != null  and compName != ''">and comp_name = #{compName}</if>
         </where>
     </select>
 
@@ -117,6 +126,10 @@
             <if test="idType != null">id_type,</if>
             <if test="ageUnit != null">age_unit,</if>
             <if test="career != null">career,</if>
+            <if test="dwPhone != null">dw_phone,</if>
+            <if test="pym != null">pym,</if>
+            <if test="dictCompId != null">dict_comp_id,</if>
+            <if test="compName != null">comp_name,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="cusName != null and cusName != ''">#{cusName},</if>
@@ -144,6 +157,10 @@
             <if test="idType != null">#{idType},</if>
             <if test="ageUnit != null">#{ageUnit},</if>
             <if test="career != null">#{career},</if>
+            <if test="dw_phone != null">#{dwPhone},</if>
+            <if test="pym != null">#{pym},</if>
+            <if test="dictCompId != null">#{dictCompId},</if>
+            <if test="compName != null">#{compName},</if>
         </trim>
     </insert>
 
@@ -175,6 +192,10 @@
             <if test="idType != null">id_type = #{idType},</if>
             <if test="ageUnit != null">age_unit = #{ageUnit},</if>
             <if test="career != null">career = #{career},</if>
+            <if test="dwPhone != null">dw_phone = #{dwPhone},</if>
+            <if test="pym != null">pym = #{pym},</if>
+            <if test="dictCompId != null">dict_comp_id = #{dictCompId},</if>
+            <if test="compName != null">comp_name = #{compName},</if>
         </trim>
         where cus_id = #{cusId}
     </update>

--
Gitblit v1.8.0