From dc3112c9ccd605272267669bcfcdeb15f64c2d80 Mon Sep 17 00:00:00 2001
From: bluejay <253316343@qq.com>
Date: 星期三, 09 四月 2025 17:39:03 +0800
Subject: [PATCH] list查询接口改动postgresql语法

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
index d91457d..99a5f42 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPlatePlanMapper.xml
@@ -177,9 +177,9 @@
             <if test="weekCycle != null">week_cycle = #{weekCycle},</if>
             <if test="mainPartNumber != null">main_part_number = #{mainPartNumber},</if>
             <if test="mainPartDrawingNumber != null">main_part_drawing_number = #{mainPartDrawingNumber},</if>
-            <if test="customer != null">customer = #{customer},</if>
-            <if test="businessType != null">business_type = #{businessType},</if>
-            <if test="documentNumber != null">document_number = #{documentNumber},</if>
+            <if test="customer != null  and customer != ''">  and customer like  '%' || #{customer} || '%'  </if>
+            <if test="businessType != null  and businessType != ''"> and business_type = #{businessType}</if>
+            <if test="documentNumber != null  and documentNumber != ''"> and document_number  like  '%' || #{documentNumber} || '%'</if>
             <if test="requirementType != null">requirement_type = #{requirementType},</if>
             <if test="documentStatus != null">document_status = #{documentStatus},</if>
             <if test="itemNumber != null">item_number = #{itemNumber},</if>

--
Gitblit v1.9.3