From 7071e6b8b3f144b80463b2c99684d4187bc2b79a Mon Sep 17 00:00:00 2001
From: guoyujie <guoyujie@ng.com>
Date: 星期三, 09 七月 2025 11:50:19 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 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 8c32341..adc2142 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -784,6 +784,14 @@
           and position(fc.technology_number in #{technologyNumber})
         group by fc.process_id, fc.order_number
         <choose>
+            <!-- 褰� landingSequence != 1 涓� flashback != 1 鏃讹紝鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1 and flashback != 1">
+                ORDER BY landing_sequence,fc.id desc
+            </when>
+            <!-- landingSequence != 1 鏃讹紝浼樺厛鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1">
+                ORDER BY landing_sequence DESC
+            </when>
             <!-- flashback = 1 鏃舵搴� -->
             <when test="flashback == 1">
                 ORDER BY
@@ -1473,6 +1481,13 @@
           and position(fc.technology_number in #{technologyNumber})
         group by fc.process_id, fc.order_number, fc.technology_number
         <choose>
+            <when test="landingSequence != 1 and flashback != 1">
+                ORDER BY landing_sequence,fc.id desc
+            </when>
+            <!-- landingSequence != 1 鏃讹紝浼樺厛鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1">
+                ORDER BY landing_sequence DESC
+            </when>
             <!-- flashback = 1 鏃舵搴� -->
             <when test="flashback == 1">
                 ORDER BY
@@ -1522,6 +1537,13 @@
         where fc.process_id = #{processId} and fc.`merge`=1
         group by fc.process_id, fc.order_number
         <choose>
+            <when test="landingSequence != 1 and flashback != 1">
+                ORDER BY landing_sequence,fc.id desc
+            </when>
+            <!-- landingSequence != 1 鏃讹紝浼樺厛鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1">
+                ORDER BY landing_sequence DESC
+            </when>
             <!-- flashback = 1 鏃舵搴� -->
             <when test="flashback == 1">
                 ORDER BY
@@ -3209,6 +3231,13 @@
         and position(fc.technology_number in #{compound})
         group by fc.process_id, fc.order_number
         <choose>
+            <when test="landingSequence != 1 and flashback != 1">
+                ORDER BY landing_sequence,fc.id desc
+            </when>
+            <!-- landingSequence != 1 鏃讹紝浼樺厛鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1">
+                ORDER BY landing_sequence DESC
+            </when>
             <!-- flashback = 1 鏃舵搴� -->
             <when test="flashback == 1">
                 ORDER BY
@@ -3258,6 +3287,13 @@
         and position(fc.technology_number in #{compound})
         group by fc.process_id, fc.order_number
         <choose>
+            <when test="landingSequence != 1 and flashback != 1">
+                ORDER BY landing_sequence,fc.id desc
+            </when>
+            <!-- landingSequence != 1 鏃讹紝浼樺厛鎸� landing_sequence 鍊掑簭 -->
+            <when test="landingSequence != 1">
+                ORDER BY landing_sequence DESC
+            </when>
             <!-- flashback = 1 鏃舵搴� -->
             <when test="flashback == 1">
                 ORDER BY

--
Gitblit v1.8.0