From 939ccc9c254870ed15cdd485b9d303bbb00a23f2 Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期日, 28 九月 2025 14:16:27 +0800
Subject: [PATCH] 注释加上上海玻璃公司ip

---
 north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 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 36377c4..4b457d3 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/ReportingWork.xml
@@ -84,7 +84,7 @@
                    from reporting_work as a
                        left join reporting_work_detail as b on a.reporting_work_id = b.reporting_work_id
                    where this_process=#{previousProcess} and reviewed_state=0 and process_id=#{processIdStr}
-                     and  POSITION(b.technology_number in #{technologyStr})
+                     and  FIND_IN_SET(b.technology_number , #{technologyStr})
                    ) as rw
         on rw.process_id = fc.process_id
         left join reporting_work_detail as rwd on rw.reporting_work_id = rwd.reporting_work_id and rwd.technology_number=fc.technology_number
@@ -113,7 +113,7 @@
                        left join flow_card as fc on fc.order_id=o.order_id and fc.order_number=ogd.order_number and fc.technology_number=ogd.technology_number
                        where fc.process_id = #{processIdStr}
                          and o.create_order>0
-                         and POSITION(fc.technology_number in #{technologyStr})
+                         and FIND_IN_SET(fc.technology_number , #{technologyStr})
                        limit 1),'') as  process
 
     </select>
@@ -166,7 +166,7 @@
                 where
                 reporting_work.this_process = #{process}
                 and a.process_id=#{processIdStr}
-                and POSITION(a.technology_number in #{technologyStr})
+                and FIND_IN_SET(a.technology_number , #{technologyStr})
                 and a.review_status = 1
                 group by a.process_id,a.order_sort,a.technology_number
             ) as patch
@@ -177,7 +177,7 @@
 
         WHERE
             fc.process_id = #{processIdStr}
-          AND  POSITION(fc.technology_number in #{technologyStr})
+          AND  FIND_IN_SET(fc.technology_number , #{technologyStr})
           AND odpd.process = #{process}
           and if(#{reportType}=1,o.order_type!='鏍峰搧璁㈠崟',o.order_id!='')
         and o.create_order>0 and fc.quantity - ifnull(fc.termination_quantity,0)>0
@@ -223,7 +223,7 @@
             from sd.order_glass_detail
             where order_id = ogd.order_id
             and order_number = ogd.order_number
-            and POSITION(technology_number in #{technologyStr})
+            and  FIND_IN_SET(technology_number , #{technologyStr})
             limit 1)
         </if>
 
@@ -262,7 +262,7 @@
         left join reporting_work_detail as b on a.reporting_work_id = b.reporting_work_id
         where this_process=#{previousProcess} and process_id= #{processIdStr} and a.reviewed_state>=0
         <if test="laminating == ''">
-            AND POSITION(b.technology_number in #{technologyStr})
+            AND FIND_IN_SET(b.technology_number , #{technologyStr})
         </if>
         GROUP BY b.order_number,b.technology_number
         ) as rws
@@ -272,7 +272,7 @@
 
         AND odpd.process = #{process}
         <if test="laminating == ''">
-            AND POSITION(fc.technology_number in #{technologyStr})
+            AND FIND_IN_SET(fc.technology_number , #{technologyStr})
         </if>
         order by fc.order_number
     </select>
@@ -1114,4 +1114,14 @@
         GROUP BY rw.reporting_work_id
         ORDER BY rw.reporting_work_id desc
     </select>
+
+    <select id="mesSelectWorkBasicDeviceMp">
+        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="mesSelectWorkBasicTeamsMp">
+        select id,login_name,user_name,address from erp_user_info.`user`
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0