From 7bab8baa3279a76a594a8f47fc09b2d39cd3d682 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期五, 01 三月 2024 11:28:55 +0800
Subject: [PATCH] 生产基础数据修改

---
 north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
index 0df04e9..c97049a 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -43,17 +43,15 @@
     </select>
 
     <select id="SelectWorkBasicDeviceMp">
-        select *
-        from basic_data_produce as a
-        where a.basic_category = #{process}
-          and a.basic_type = '璁惧'
+        SELECT bdp.id,bdp.basic_type,bdp.basic_name, bd.basic_name as basic_category FROM  sd.basic_data as bd left join  `basic_data_produce` as bdp
+                                                                                                                          on bd.id=bdp.basic_category
+        where bd.basic_category="process" and bdp.basic_type="device" and bd.basic_name = #{process}
     </select>
 
     <select id="SelectWorkBasicTeamsMp">
-        select *
-        from basic_data_produce as a
-        where a.basic_category = #{process}
-          and a.basic_type = '鐝粍'
+        SELECT bdp.id,bdp.basic_type,bdp.basic_name, bd.basic_name as basic_category FROM  sd.basic_data as bd left join  `basic_data_produce` as bdp
+                                                                                                                          on bd.id=bdp.basic_category
+        where bd.basic_category="process" and bdp.basic_type="teamsgroups" and bd.basic_name = #{process}
     </select>
 
     <!--    鏌ヨ娴佺▼鍗″伐鑹烘祦绋�-->

--
Gitblit v1.8.0