From 894b091f0e9b6b501e408885ce28f6a391e43d7c Mon Sep 17 00:00:00 2001 From: lige <bestlige@outlook.com> Date: 星期六, 09 十二月 2023 18:42:13 +0800 Subject: [PATCH] 2 --- ltkj-hosp/src/main/resources/mapper/hosp/DictSfxmMapper.xml | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/DictSfxmMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/DictSfxmMapper.xml index dbdd846..7754f2e 100644 --- a/ltkj-hosp/src/main/resources/mapper/hosp/DictSfxmMapper.xml +++ b/ltkj-hosp/src/main/resources/mapper/hosp/DictSfxmMapper.xml @@ -62,7 +62,8 @@ and xmbm = #{xmbm} </if> <if test="xmmc != null and xmmc != ''"> - and xmmc = like "%"#{xmmc}"%" +-- and xmmc like "%"#{xmmc}"%" + and xmmc like CONCAT("%",#{xmmc},"%") </if> <if test="pym != null and pym != ''"> and pym like "%"#{pym}"%" @@ -436,4 +437,4 @@ #{id} </foreach> </delete> -</mapper> \ No newline at end of file +</mapper> -- Gitblit v1.8.0