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/java/com/ltkj/hosp/mapper/TjCustomerMapper.java | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java index 9fb4ea8..e8a7e94 100644 --- a/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java +++ b/ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java @@ -2,6 +2,7 @@ import java.sql.ResultSet; import java.util.List; +import java.util.Map; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ltkj.hosp.domain.TjCustomer; @@ -87,4 +88,20 @@ @Update("update tj_customer set card_id=#{cardId} where cus_id=#{cusId}") void updateCardId(@Param("cusId") Long cusId,@Param("cardId") String cardId); + + +// @Select({"<script> select * from v_customer where 1=1 "+ +// " <when test='name !=null'>" + +// " AND xm like '%'+#{name}+'%'" + +// "</when>" + +// " <when test='sjh !=null'>" + +// " AND sjh like '%'+#{sjh}+'%' " + +// "</when>" + +// " <when test='sfzh !=null'>" + +// " AND sfzh = #{sfzh}" + +// "</when>" + +// "</script>"}) + List<Map<String, Object>> vcustomerlist(@Param("name")String name, @Param("sjh")String sjh, @Param("sfzh") String sfzh); + + List<TjCustomer> getcusList(TjCustomer tjCustomer); } -- Gitblit v1.8.0