From 41631eec06251ec8f858765af6a0858b180e720d Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期四, 22 二月 2024 08:22:56 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/ERP_override

---
 north-glass-erp/target/classes/mapper/sd/OrderMapper.xml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/north-glass-erp/target/classes/mapper/sd/OrderMapper.xml b/north-glass-erp/target/classes/mapper/sd/OrderMapper.xml
index 0f207ee..0b4cb11 100644
--- a/north-glass-erp/target/classes/mapper/sd/OrderMapper.xml
+++ b/north-glass-erp/target/classes/mapper/sd/OrderMapper.xml
@@ -44,10 +44,10 @@
            </if>
 
            <if test="order.customerId != null and order.customerId != ''">
-               and o.customer_id REGEXP #{customerId}
+               and o.customer_id REGEXP #{order.customerId}
            </if>
            <if test="order.customerName != null and order.customerName != ''">
-               and o.customer_name REGEXP #{customerName}
+               and o.customer_name REGEXP #{order.customerName}
            </if>
            <if test="order.project != null and order.project != ''">
                and o.project REGEXP #{order.project}
@@ -60,7 +60,7 @@
            </if>
 
            <if test="order.area != null and order.area != ''">
-               and o.area REGEXP #{order.area}
+               and o.area REGEXP REGEXP_REPLACE(#{order.area}, '\\.0+$', '')
            </if>
            <if test="order.createTime != null and order.createTime != ''">
                and date(o.create_time) = #{order.createTime}
@@ -111,10 +111,10 @@
             </if>
 
             <if test="order.customerId != null and order.customerId != ''">
-                and o.customer_id REGEXP #{customerId}
+                and o.customer_id REGEXP #{order.customerId}
             </if>
             <if test="order.customerName != null and order.customerName != ''">
-                and o.customer_name REGEXP #{customerName}
+                and o.customer_name REGEXP #{order.customerName}
             </if>
             <if test="order.project != null and order.project != ''">
                 and o.project REGEXP #{order.project}

--
Gitblit v1.8.0