From 71f44d71edeabfdcc83366127a2f1f40f5a8de3e Mon Sep 17 00:00:00 2001 From: 123456 <123456> Date: 星期三, 17 七月 2024 16:08:32 +0800 Subject: [PATCH] 费用统计分页查询功能修改 --- performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml index a57a4c3..d898a23 100644 --- a/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml +++ b/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml @@ -49,13 +49,13 @@ select ach.*,name FROM auxiliary_correction_hours ach left join user on user.id=ach.name_user - WHERE name_user in(#{ids}) - <!--<if test="ids !=null and ids != ''"> - WHERE name_user in + WHERE 1=1 + <if test="ids !=null and ids != ''"> + and name_user in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> #{val} </foreach> - </if>--> + </if> ) A <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} -- Gitblit v1.9.3