From 9f0ba8a9df6776db33567b94e2beaac0d9748cb4 Mon Sep 17 00:00:00 2001 From: 18154758993 <605281283@qq.com> Date: Fri, 12 Sep 2025 15:58:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E7=94=9F=E6=8A=A5=E5=88=B0=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/stureg/SrsStuRegMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srs-stureg/src/main/resources/mapper/stureg/SrsStuRegMapper.xml b/srs-stureg/src/main/resources/mapper/stureg/SrsStuRegMapper.xml index f017866..5947c4b 100644 --- a/srs-stureg/src/main/resources/mapper/stureg/SrsStuRegMapper.xml +++ b/srs-stureg/src/main/resources/mapper/stureg/SrsStuRegMapper.xml @@ -77,11 +77,11 @@ and a.ZZMM = #{ZZMM} and a.MZ = #{MZ} and a.XH = #{XH} - and a.XY = #{XY} + and a.XY like concat('%', #{XY}, '%') and a.XYDM = #{XYDM} and a.ZY = #{ZY} and a.ZYDM = #{ZYDM} - and a.BJ = #{BJ} + and a.BJ like concat('%',#{BJ}, '%') and a.BJDM = #{BJDM} and a.last_school = #{lastSchool} and a.last_school_addr = #{lastSchoolAddr} @@ -650,7 +650,7 @@ select a.*,b.class_name,f.major_name,g.dept_name, case e.room_no is NULL when true then "无" - else concat(e.park_name,' ',e.building_name,' ',e.room_no) end as dorm + else concat(e.park_name,' ',e.building_name,' ',e.room_no) end as dorm,a.is_smoke,a.is_early,a.hobby from srs_stu_reg as a left join srs_class as b on a.BJDM = b.class_code left join cph_teacher as c on b.teacher_id = c.teacher_id