From dd2554435b9ced61e2a6a06627145fca3bf2685b Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期一, 04 九月 2023 17:17:17 +0800 Subject: [PATCH] 修改bug --- inspection-server/src/main/resources/mapper/InspectionMapper.xml | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inspection-server/src/main/resources/mapper/InspectionMapper.xml b/inspection-server/src/main/resources/mapper/InspectionMapper.xml index a8421e2..3218545 100644 --- a/inspection-server/src/main/resources/mapper/InspectionMapper.xml +++ b/inspection-server/src/main/resources/mapper/InspectionMapper.xml @@ -22,8 +22,8 @@ join lims_laboratory.inspection_material im on i.id = im.inspection_id where i.state=1 <if test="message!=null"> - and i.code like concat('%', #{message}, '%') - or im.name like concat('%', #{message}, '%') + and (i.code like concat('%', #{message}, '%') + or im.name like concat('%', #{message}, '%')) </if> </select> -- Gitblit v1.9.3