From 16d63c3d68d131ad0cc4a8bd9f22a0c0515aa6bf Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 17 七月 2024 18:23:57 +0800 Subject: [PATCH] 工时的各需求+检验任务修改 --- performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml | 20 +++++++++++++++++--- 1 files changed, 17 insertions(+), 3 deletions(-) diff --git a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml index 48b7a4a..476beb0 100644 --- a/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml +++ b/performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml @@ -57,8 +57,7 @@ </select> <select id="selectListByIds" resultType="com.yuanchu.mom.pojo.AuxiliaryWorkingHoursDay"> select * from auxiliary_working_hours_day - where 1=1 - + where state='宸插鏍�' <if test="ids !=null and ids != ''"> and name_user in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> @@ -69,7 +68,7 @@ <select id="totalHours" resultType="java.util.Map"> select A.name, A.month, - sum(A.manHour)as manHours + FORMAT(SUM(manHour), 4)as manHours from( select user.name, case when reviewer_nonproductive_time is null then nonproductive_time @@ -91,4 +90,19 @@ group by A.name,A.month order by A.name,A.month </select> + + <select id="selectLists" resultMap="BaseResultMap"> + select * from(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"> + #{val} + </foreach> + </if> + ) A + <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> + ${ew.customSqlSegment} + </if> + </select> </mapper> -- Gitblit v1.9.3