From 615d0a9e2011510b589ccc3b4bc58894a39e8295 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 05 七月 2024 10:17:03 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml b/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
index 1de3c6f..ec4be7e 100644
--- a/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
+++ b/north-glass-erp/src/main/resources/mapper/pp/WordOrder.xml
@@ -15,6 +15,7 @@
             <result column="project" property="order.project"/>
             <result column="area" property="order.area"/>
             <result column="creator" property="order.creator"/>
+        <result column="customer_name" property="order.customerName"/>
 <!--        <association property="orderDetail" javaType="com.example.erp.entity.sd.OrderDetail">-->
 <!--            <result column="product_id" property="productId"/>-->
 <!--            <result column="product_name" property="productName"/>-->
@@ -37,7 +38,8 @@
         o.order_type,
         o.area as gross_area,
         o.quantity as quantity,
-        o.creator
+        o.creator,
+        o.customer_name
         from sd.order_detail  as od
         left join `order` as o
         on o.order_id=od.order_id
@@ -55,6 +57,9 @@
         </if>
         <if test="orderGlassDetail.order.orderType != null and orderGlassDetail.order.orderType!= ''">
             and o.order_type regexp #{orderGlassDetail.order.orderType}
+        </if>
+        <if test="orderGlassDetail.order.customerName != null and orderGlassDetail.order.customerName!= ''">
+            and o.customer_name regexp #{orderGlassDetail.order.customerName}
         </if>
 
         <if test="orderGlassDetail.createTime != ''">
@@ -79,7 +84,8 @@
         (od.gross_area) as gross_area,
         (od.quantity) as quantity,
         o.creator,
-        od.id
+        od.id,
+        o.customer_name
         from sd.order_glass_detail  as ogd
         left join  order_detail as od
         on od.order_id=ogd.order_id
@@ -103,6 +109,9 @@
         <if test="orderGlassDetail.order.orderType != null and orderGlassDetail.order.orderType!= ''">
             and o.order_type regexp #{orderGlassDetail.order.orderType}
         </if>
+        <if test="orderGlassDetail.order.customerName != null and orderGlassDetail.order.customerName!= ''">
+            and o.customer_name regexp #{orderGlassDetail.order.customerName}
+        </if>
 
         <if test="orderGlassDetail.createTime != ''">
             and DATE_FORMAT((o.create_time),'%Y-%m-%d') BETWEEN #{ selectTime1 } AND #{ selectTime2 }

--
Gitblit v1.8.0