From d1a09ac5cb4fb44ff21c349380109be1b49322c7 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期二, 10 九月 2024 13:13:12 +0800
Subject: [PATCH] 流程卡新增合并状态显示

---
 north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 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 04e5891..b1842ad 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/FolwCard.xml
@@ -10,6 +10,7 @@
         <result column="founder" property="founder"/>
         <result column="create_time" property="createTime"/>
         <result column="layout_status" property="layoutStatus"/>
+        <result column="merge" property="merge"/>
         <!--鎺ユ敹鍏朵粬澶栭敭瀹炰綋绫绘暟鎹�-->
         <association property="order" javaType="com.example.erp.entity.sd.Order">
             <result column="project" property="project"/>
@@ -64,8 +65,9 @@
         a.founder,
         c.processing_note,
         b.customer_name,
-        if(a.layout_status=0,'涓嶅彲鎺掔増',if(a.layout_status=1,'鍙帓鐗�','宸叉帓鐗�')) as layout_status
-        from (select id,order_id,process_id,order_number, quantity,founder,layout_status,create_time from flow_card
+        if(a.layout_status=0,'涓嶅彲鎺掔増',if(a.layout_status=1,'鍙帓鐗�','宸叉帓鐗�')) as layout_status,
+        a.merge
+        from (select id,order_id,process_id,order_number, quantity,founder,layout_status,create_time,merge from flow_card
         group by process_Id,order_number) as a left join sd.`order` as b on a.order_Id=b.order_id
         left join sd.order_detail as c on a.order_Id=c.order_id and a.order_Number=c.order_number
         where a.create_time between #{selectTime1} and #{selectTime2}
@@ -93,6 +95,9 @@
         </if>
         <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and  flowCard.layoutStatus == '宸叉帓鐗�'">
             and a.layout_status regexp 2
+        </if>
+        <if test="flowCard.merge != null">
+            and a.merge regexp #{flowCard.merge}
         </if>
         <if test="flowCard.order.customerName != null and flowCard.order.customerName!= ''">
             and b.customer_name regexp #{flowCard.order.customerName}
@@ -135,6 +140,9 @@
         <if test="flowCard.layoutStatus != null and flowCard.layoutStatus != '' and  flowCard.layoutStatus == '宸叉帓鐗�'">
             and a.layout_status regexp 2
         </if>
+        <if test="flowCard.merge != null">
+            and a.merge regexp #{flowCard.merge}
+        </if>
 
         ORDER BY a.id desc
         limit #{offset},#{pageSize};

--
Gitblit v1.8.0