From 5a6a1ae4f22cae6323e41d35c5f32137afddd2d0 Mon Sep 17 00:00:00 2001
From: zjh <zjh@888>
Date: 星期三, 12 六月 2024 16:59:08 +0800
Subject: [PATCH] zjh 本地 2024/06/12 --1

---
 ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java |    6 ++++++
 1 files changed, 6 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 39703f1..71975ce 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
@@ -75,4 +75,10 @@
 
     @Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard}")
     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);
 }

--
Gitblit v1.8.0