From 2e4af4ece3016604568c644fba68b6d86afa8507 Mon Sep 17 00:00:00 2001 From: 123456 <123456> Date: 星期二, 16 七月 2024 17:24:29 +0800 Subject: [PATCH] 报错信息修改 --- performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml index c4c2c6f..48b7a4a 100644 --- a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml +++ b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml @@ -26,18 +26,19 @@ <result column="state" property="state"/> </resultMap> <select id="selectAuxiliaryWorkingHoursDay" resultType="com.yuanchu.mom.dto.AuxiliaryWorkingHoursDayDto"> - select data.* + select A.* from ( select awhd.*,name FROM auxiliary_working_hours_day awhd left join user on name_user=user.id + WHERE 1=1 <if test="ids !=null and ids != ''"> - WHERE name_user in + and name_user in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> #{val} </foreach> </if> - ) data + ) A <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> @@ -46,8 +47,9 @@ select awhd.*,name FROM auxiliary_working_hours_day awhd left join user on name_user=user.id + WHERE 1=1 <if test="ids !=null and ids != ''"> - WHERE name_user in + and name_user in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> #{val} </foreach> @@ -56,6 +58,7 @@ <select id="selectListByIds" resultType="com.yuanchu.mom.pojo.AuxiliaryWorkingHoursDay"> select * from auxiliary_working_hours_day where 1=1 + <if test="ids !=null and ids != ''"> and name_user in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> @@ -77,12 +80,12 @@ left join department_lims dl on depart_lims_id=dl.id where date_time LIKE CONCAT('%', #{month}, '%') and awhd.state='宸叉壒鍑�' - <if test="ids !=null and ids != ''"> - and name_user in - <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> - #{val} - </foreach> - </if> + <if test="ids !=null and ids != ''"> + and name_user in + <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> + #{val} + </foreach> + </if> order by month,user.name )A group by A.name,A.month -- Gitblit v1.9.3