From 3ae364164cb9d85acce0b53a1ba5c70a80991308 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期三, 03 七月 2024 22:21:49 +0800 Subject: [PATCH] 温度循环+报告英文换行+检验只有一项的设备查询+光纤配置报告换页+温度湿度 --- performance-server/src/main/resources/mapper/AuxiliaryOutputWorkingHoursMapper.xml | 23 +++++++---------------- 1 files changed, 7 insertions(+), 16 deletions(-) diff --git a/performance-server/src/main/resources/mapper/AuxiliaryOutputWorkingHoursMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryOutputWorkingHoursMapper.xml index 0117578..8210a83 100644 --- a/performance-server/src/main/resources/mapper/AuxiliaryOutputWorkingHoursMapper.xml +++ b/performance-server/src/main/resources/mapper/AuxiliaryOutputWorkingHoursMapper.xml @@ -45,7 +45,7 @@ #{val} </foreach> </if> - ) data + ) A <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> ${ew.customSqlSegment} </if> @@ -64,33 +64,24 @@ <select id="totalHours" resultType="java.util.Map"> select A.name, A.month, - A.output_work_time + A.manHours from( select user.name, - user.id, - depart_lims_id, - output_work_time, - date_time as month + date_time as month, + sum(output_work_time) as manHours from auxiliary_output_working_hours aowh left join user on user.id=aowh.`check` left join department_lims dl on depart_lims_id=dl.id - where date_time between #{startTime} and #{endTime} + where date_time LIKE CONCAT('%', #{month}, '%') <if test="ids !=null and ids != ''"> and `check` in <foreach collection="ids" index="index" open="(" separator="," close=")" item="val"> #{val} </foreach> </if> - order by date_time + group by user.name,month + order by month,user.name )A - where 1=1 - <if test="userId !=null and userId != ''"> - and A.user_id=#{userId} - </if> - <if test="departId !=null and departId != ''"> - and A.depart_lims_id=#{departId} - </if> - group by A.name,A.month </select> <select id="selectListByIds" resultType="com.yuanchu.mom.pojo.AuxiliaryOutputWorkingHours"> select * from auxiliary_output_working_hours -- Gitblit v1.9.3