From ee5fac6d743c3e9e2ddd2b9ce0407b9731a2c3c7 Mon Sep 17 00:00:00 2001 From: bluejay <253316343@qq.com> Date: 星期三, 09 四月 2025 17:35:23 +0800 Subject: [PATCH] 调整list查询接口,进行数据字典的转义 --- aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml index 3fa4b0e..1ed7f11 100644 --- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml +++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsPartPlanMapper.xml @@ -54,9 +54,9 @@ <if test="weekCycle != null and weekCycle != ''"> and week_cycle = #{weekCycle}</if> <if test="mainPartNumber != null and mainPartNumber != ''"> and main_part_number = #{mainPartNumber}</if> <if test="mainPartDrawingNumber != null and mainPartDrawingNumber != ''"> and main_part_drawing_number = #{mainPartDrawingNumber}</if> - <if test="customer != null and customer != ''"> and customer like concat('%', #{customer}, '%')</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 = #{documentNumber}</if> + <if test="documentNumber != null and documentNumber != ''"> and document_number like '%' || #{documentNumber} || '%'</if> <if test="requirementType != null and requirementType != ''"> and requirement_type = #{requirementType}</if> <if test="documentStatus != null and documentStatus != ''"> and document_status = #{documentStatus}</if> <if test="itemNumber != null and itemNumber != ''"> and item_number = #{itemNumber}</if> -- Gitblit v1.9.3