From 2f44fc75c78e9291f07a0864199235cde689fa8d Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 12 十二月 2025 12:29:37 +0800
Subject: [PATCH] 订单明细报表新增楼层编号跟其他列

---
 north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml b/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
index 6dee99b..b67e7b1 100644
--- a/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
+++ b/north-glass-erp/src/main/resources/mapper/sd/OrderDetailMapper.xml
@@ -320,6 +320,10 @@
             and a.order_number like concat('%',#{orderDetail.orderNumber},'%')
         </if>
 
+        <if test="orderDetail.buildingNumber != null and orderDetail.buildingNumber != ''">
+            and a.building_number like concat('%',#{orderDetail.buildingNumber},'%')
+        </if>
+
         <if test="orderDetail.width != null and orderDetail.width != '' and model==0">
             and a.width regexp REGEXP_REPLACE(#{orderDetail.width},'\\.0+$','')
         </if>
@@ -478,6 +482,10 @@
             and a.order_number like concat('%',#{orderDetail.orderNumber},'%')
         </if>
 
+        <if test="orderDetail.buildingNumber != null and orderDetail.buildingNumber != ''">
+            and a.building_number like concat('%',#{orderDetail.buildingNumber},'%')
+        </if>
+
         <if test="orderDetail.width != null and orderDetail.width != ''">
             and a.width regexp REGEXP_REPLACE(#{orderDetail.width},'\\.0+$','')
         </if>

--
Gitblit v1.8.0