From b9b7cde34f684dccbd32469d99a8f59a556cf3f5 Mon Sep 17 00:00:00 2001
From: gongzuming <gongzuming>
Date: 星期二, 22 十月 2024 13:35:53 +0800
Subject: [PATCH] 菜单优化

---
 src/main/resources/mapper/supplier/SupplierMapper.xml |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/supplier/SupplierMapper.xml b/src/main/resources/mapper/supplier/SupplierMapper.xml
index 2337500..1f21e2f 100644
--- a/src/main/resources/mapper/supplier/SupplierMapper.xml
+++ b/src/main/resources/mapper/supplier/SupplierMapper.xml
@@ -7,11 +7,13 @@
         SELECT
             t.*,
             s.name as stationName,
-            st.`name` as typeName
+            st.`name` as typeName,
+            us.login_name as registerTel
         FROM
             t_supplier_info t
                 LEFT JOIN t_station s ON t.station_id = s.id
                 LEFT JOIN t_supplier_type st ON t.type_id = st.id
+                LEFT JOIN t_user us ON t.user_id = us.id and us.type='supplier'
         WHERE t.deleted = 0
         <if test="dto.name!=null and dto.name!=''">
             AND t.name LIKE CONCAT('%',#{dto.name}, '%')
@@ -35,6 +37,9 @@
                AND t.create_time <= #{dto.createDateEnd}
             ]]>
         </if>
+        <if test="dto.isEnabled!=null">
+            AND t.is_enabled = #{dto.isEnabled}
+        </if>
         order by t.create_time desc
     </select>
     <select id="findSupplierDetail" resultType="com.mzl.flower.dto.response.supplier.SupplierDTO"

--
Gitblit v1.9.3