From aa4a9a6f2f40f57fc725ebcd5a6c09d34921f0eb Mon Sep 17 00:00:00 2001 From: 赵文轩 <1652863494@qq.com> Date: 星期五, 07 六月 2024 10:23:06 +0800 Subject: [PATCH] hisAPI配置 --- 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