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/FolwCard.xml |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
index b0cbee1..e1925a4 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -25,6 +25,7 @@
             <result column="salesman" property="salesman"/>
             <result column="processing_note" property="processingNote"/>
             <result column="delivery_address" property="deliveryAddress"/>
+            <result column="create_time" property="createTime"/>
         </association>
         <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail">
             <result column="product_id" property="productId"/>
@@ -69,7 +70,8 @@
         layout_status as layout_status,
         a.merge,
         a.rack,
-        b.batch
+        b.batch,
+        b.create_time
         from (select id,order_id,process_id,order_number, quantity,founder,max(layout_status) as layout_status,create_time,max(merge) as merge,rack from flow_card
         group by process_Id,order_number) as a
         left join sd.`order` as b on a.order_Id=b.order_id
@@ -811,7 +813,7 @@
                               fcs.technology_number = fc.technology_number
                                and fcs.process = #{process}
         where fc.process_id = #{processId}
-          and position(fc.technology_number in #{technologyNumber})
+          and FIND_IN_SET(fc.technology_number , #{technologyNumber})
         group by fc.process_id, fc.order_number
         <choose>
             <!-- 褰� landingSequence != 1 涓� flashback != 1 鏃讹紝鎸� landing_sequence 鍊掑簭 -->
@@ -1479,7 +1481,7 @@
         from sd.order_detail as od
                  left join flow_card as fc on od.order_id = fc.order_id and od.order_number = fc.order_number
         where fc.process_id = #{processId}
-          and POSITION(fc.technology_number in #{technologyNumber})
+          and  FIND_IN_SET(fc.technology_number , #{technologyNumber})
         GROUP BY other_columns
         order by IF(fc.sort != NULL or fc.sort != '', fc.sort, fc.order_number)
     </select>
@@ -1629,7 +1631,7 @@
                               fcs.technology_number = fc.technology_number
                                and fcs.process = #{process}
         where fc.process_id = #{processId}
-          and position(fc.technology_number in #{technologyNumber})
+          and  FIND_IN_SET(fc.technology_number , #{technologyNumber})
         group by fc.process_id, fc.order_number, fc.technology_number
         <choose>
             <when test="landingSequence != 1 and flashback != 1">
@@ -3533,7 +3535,8 @@
         fcs.technology_number = fc.technology_number
         and fcs.process = #{process}
         where fc.process_id = #{processId}
-        and position(fc.technology_number in #{compound})
+        and
+        FIND_IN_SET(fc.technology_number , #{compound})
         group by fc.process_id, fc.order_number
         <choose>
             <when test="landingSequence != 1 and flashback != 1">
@@ -3589,7 +3592,7 @@
         fcs.technology_number = fc.technology_number
         and fcs.process = #{process}
         where fc.process_id = #{processId}
-        and position(fc.technology_number in #{compound})
+        and FIND_IN_SET(fc.technology_number , #{compound})
         group by fc.process_id, fc.order_number
         <choose>
             <when test="landingSequence != 1 and flashback != 1">

--
Gitblit v1.8.0