From 91ab1a15515c4c213b2ac4f777a7f20c3d0d59ad Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 28 三月 2025 13:49:53 +0800 Subject: [PATCH] 一个订单在每个站点检验都需要扫码入库报检,在中间站点复核继续试验之后默认自动将样品出库,且在列表中也不需要再展示出来,到最后一步复核结束反而是需要手动去出库不能自动出库,且出库之后也不需要在页面展示 --- performance-server/src/main/resources/mapper/AuxiliaryWorkingHoursDayMapper.xml | 37 +++++++++++++++++++++++++++---------- 1 files changed, 27 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..476beb0 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> @@ -55,7 +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"> @@ -66,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 @@ -77,15 +79,30 @@ 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> + order by month,user.name + )A + 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> - order by month,user.name - )A - group by A.name,A.month - order by A.name,A.month + ) A + <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''"> + ${ew.customSqlSegment} + </if> </select> </mapper> -- Gitblit v1.9.3