From e7ac7e5702f6ac1f88403485de232e5494a1c76a Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期一, 11 八月 2025 13:55:57 +0800
Subject: [PATCH] 修改错误日志打印
---
ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 48 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 c729cd5..5349c71 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
@@ -1,11 +1,16 @@
package com.ltkj.hosp.mapper;
+import java.sql.ResultSet;
+import java.util.Date;
import java.util.List;
+import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ltkj.hosp.domain.TjCustomer;
import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
+import org.apache.ibatis.annotations.Update;
/**
* 瀹㈡埛淇℃伅Mapper鎺ュ彛
@@ -66,4 +71,47 @@
@Select("SELECT * FROM tj_customer WHERE cus_name like concat('%',#{name},'%') AND deleted=0 ")
List<TjCustomer> getTjCustomerList(String name);
+
+
+ @Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard} and deleted=0")
+ TjCustomer getTjCustomerByCusIdCard(String cusIdCard);
+
+
+ @Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard} deleted=0")
+ ResultSet getJsonParseCustomerList(String deptId, Integer page, Integer pageSize, String cusName, String tjNumber);
+
+ @Select("SELECT IFNULL(b.cn_name,'鏃�') FROM (\n" +
+ "\n" +
+ "SELECT a.firm_id cid FROM tj_order a WHERE a.user_id=#{cusId} ORDER BY a.order_id DESC LIMIT 1)" +
+ " aa LEFT JOIN dict_comp b ON aa.cid=b.drug_manufacturer_id")
+ String getCompNameByCusId(String cusId);
+
+
+ @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);
+
+ List<Map<String ,Object >> getCusInfoList(@Param("card") String card,@Param("time") Date time);
+
+ List<Map<String ,Object >> getCusInfoListByCardAndName(@Param("card") String card,@Param("name") String name,@Param("time") Date time);
+
+
+ @Select("SELECT IF(b.cus_sex=0,'0','1') xb FROM tj_order a JOIN tj_customer b ON b.cus_id=a.user_id \n" +
+ "WHERE a.tj_number=#{tjNumber}")
+ String getSexByTjh(String tjNumber);
}
--
Gitblit v1.8.0