Browse Source

(*)v3.9.0 加班统计导出:合计加班时长(小时) 计算有误调整

master
周沫沫历险记 2 years ago
parent
commit
a9d8b090b6
  1. 2
      api/app/lib/controllers/attendance/index.js

2
api/app/lib/controllers/attendance/index.js

@ -92,7 +92,7 @@ async function exportOvertimeStatistic (ctx) {
d['sum' + overtimeTypeKey] = overtimeStatistic.reduce((sum, o) => {
if (o.compensate == overtimeTypeKey) {
sum += o.duration / 3600
totalDuration += o.duration / 3600
// totalDuration += o.duration / 3600
}
return sum
}, 0)

Loading…
Cancel
Save