From 316ef1bf39d16a29c27fe26393e704c1d0b963f9 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 21 十月 2024 13:59:47 +0800 Subject: [PATCH] update --- lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPassRateMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPassRateMapper.xml b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPassRateMapper.xml index b3f063a..2f6305b 100644 --- a/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPassRateMapper.xml +++ b/lxzn-module-mdc/src/main/java/org/jeecg/modules/mdc/mapper/xml/MdcPassRateMapper.xml @@ -7,10 +7,10 @@ SELECT * FROM mdc_pass_rate <where> <if test="mdcPassRate.equipmentName != null and mdcPassRate.equipmentName != '' "> - AND equipment_name LIKE CONCAT(CONCAT('%',#{mdcPassRate.equipmentName}),'%') + AND equipment_name LIKE '%' + #{mdcPassRate.equipmentName} + '%') </if> <if test="mdcPassRate.equipmentId != null and mdcPassRate.equipmentId != '' "> - AND equipment_id LIKE CONCAT(CONCAT('%',#{mdcPassRate.equipmentId}),'%') + AND equipment_id LIKE '%' + #{mdcPassRate.equipmentId} + '%' </if> <if test="mdcPassRate.startTime != null and mdcPassRate.endTime != null"> AND efficient_date BETWEEN #{ mdcPassRate.startTime } AND #{ mdcPassRate.endTime } -- Gitblit v1.9.3