From 9b6f602df09c5e39481f03e22d99fffe825b9393 Mon Sep 17 00:00:00 2001
From: zjh <1084500556@qq.com>
Date: 星期二, 31 十二月 2024 19:13:17 +0800
Subject: [PATCH] zjh202412031

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

diff --git a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
index 59c1c3f..36ae58d 100644
--- a/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/TjCustomerMapper.xml
@@ -216,4 +216,39 @@
             #{cusId}
         </foreach>
     </delete>
+
+    <select id="vcustomerlist" parameterType="string" resultType="map">
+        select  * from  v_customer
+        <where>
+            <if test="name != null  and name != ''">and xm like concat('%', #{name}, '%')</if>
+            <if test="sjh != null  and sjh != ''">and lxdh like concat('%', #{sjh}, '%')</if>
+            <if test="sfzh != null  and sfzh != ''">and sfzh like concat('%', #{sfzh}, '%')</if>
+        </where>
+    </select>
+
+
+    <select id="getcusList" parameterType="TjCustomer" resultMap="TjCustomerResult">
+        <include refid="selectTjCustomerVo"/>
+        <where>
+            <if test="cusName != null  and cusName != ''">and cus_name like concat('%', #{cusName}, '%')</if>
+            <if test="cusSex != null ">and cus_sex = #{cusSex}</if>
+            <if test="cusBrithday != null ">and cus_brithday = #{cusBrithday}</if>
+            <if test="cusAddr != null  and cusAddr != ''">and cus_addr = #{cusAddr}</if>
+            <if test="addr != null  and addr != ''">and addr = #{addr}</if>
+            <if test="cusPhone != null  and cusPhone != ''">and cus_phone = #{cusPhone}</if>
+            <if test="cusPostcode != null  and cusPostcode != ''">and cus_postCode = #{cusPostcode}</if>
+            <if test="cusEmail != null  and cusEmail != ''">and cus_email = #{cusEmail}</if>
+            <if test="indexCard != null  and indexCard != ''">and index_card = #{indexCard}</if>
+            <if test="cusNational != null  and cusNational != ''">and cus_national = #{cusNational}</if>
+            <if test="cusMarryStatus != null  and cusMarryStatus != ''">and cus_marry_status = #{cusMarryStatus}</if>
+            <if test="cusIdcard != null  and cusIdcard != ''">and cus_idcard = #{cusIdcard}</if>
+            <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>
+            and deleted =0
+        </where>
+    </select>
 </mapper>

--
Gitblit v1.8.0