From d866e43afbe901bfc640776e02f767b9045acbc2 Mon Sep 17 00:00:00 2001 From: 赵文轩 <1652863494@qq.com> Date: 星期三, 12 六月 2024 09:04:56 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peis --- ltkj-hosp/src/main/java/com/ltkj/hosp/mapper/TjCustomerMapper.java | 11 +++++++++++ 1 files changed, 11 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 f61ebfb..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 @@ -1,5 +1,6 @@ package com.ltkj.hosp.mapper; +import java.sql.ResultSet; import java.util.List; import com.baomidou.mybatisplus.core.mapper.BaseMapper; @@ -70,4 +71,14 @@ @Select("SELECT * FROM tj_customer WHERE cus_idcard = #{cusIdCard}") TjCustomer getTjCustomerByCusIdCard(String cusIdCard); + + + @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