From 35d63c6a7be309a102a2d42f4648b9f4b887d319 Mon Sep 17 00:00:00 2001 From: Crunchy <3114200645@qq.com> Date: 星期二, 30 七月 2024 19:19:28 +0800 Subject: [PATCH] 检验下单的分页查询展示的字段去掉下单人,然后制单人和委托人对应的数据反了 --- performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml b/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml index d898a23..6626e9f 100644 --- a/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml +++ b/performance-server/src/main/resources/mapper/AuxiliaryCorrectionHoursMapper.xml @@ -46,7 +46,13 @@ <select id="selectAuxiliaryCorrectionHours" resultType="com.yuanchu.mom.dto.AuxiliaryCorrectionHoursDto"> select A.* from ( - select ach.*,name + select ach.*, + name, + sum(one_hours+two_hours+ three_hours+ four_hours+ five_hours+ six_hours+ seven_hours+ eight_hours+ nine_hours+ + ten_hours+ eleven_hours+ twelve_hours+thirteen_hours+ fourteen_hours+ fifteen_hours+ sixteen_hours+ + seventeen_hours+ eighteen_hours+ nineteen_hours+ twenty_hours+ twenty_one_hours+ twenty_two_hours+ + twenty_three_hours+ twenty_four_hours+ twenty_five_hours+ twenty_six_hours+ twenty_seven_hours+ + twenty_eight_hours+ twenty_nine_hours+ thirty_hours+ thirty_one_hours) as total FROM auxiliary_correction_hours ach left join user on user.id=ach.name_user WHERE 1=1 -- Gitblit v1.9.3