From 6bbcdd0d1beeca74251f63ea42b9ee8349e97902 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期二, 15 七月 2025 10:19:54 +0800
Subject: [PATCH] 优化在制品查询速度

---
 north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml b/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
index 5a2b2ac..dea34f2 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/BasicDataProduce.xml
@@ -16,14 +16,13 @@
 
 
 
+
     </resultMap>
 
     <select id="SelectWorkBasicTeams"  resultMap="selectBasicDataProduce">
-        select bdp.basic_name ,bd.basic_name as d_basic_name
-        from pp.basic_data_produce bdp
-                 left join sd.basic_data bd on bdp.basic_category = bd.id
-        where bd.basic_name = #{process}
-          and bdp.basic_type = "teamsgroups"
+        SELECT user_name as basic_name,address as d_basic_name from erp_user_info.user
+            where address IS NOT NULL  and address= #{process}
+
     </select>
 
 <!--    鏌ヨ宸ュ簭-->
@@ -36,7 +35,7 @@
         select bdp.id, bdp.basic_type, bdp.basic_name, bd.basic_name as d_basic_name
         from pp.basic_data_produce bdp
         left join sd.basic_data bd on bdp.basic_category = bd.id
-        order by bdp.id desc
+        order by bdp.basic_type,bdp.id desc
     </select>
 
     <select id="openSelectIdMp">

--
Gitblit v1.8.0