yaozc
2024-05-30 86b0362eaf4c320dc6a54fc12ce80b0bf7890a85
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/UserServiceImpl.java
@@ -678,12 +678,12 @@
            if (entry.getValue() >= 8) {
                calendarVo.setDate(entry.getKey());
                calendarVo.setIsOk(true);
                calendarVo.setTitle("工时:" + entry.getValue());
                calendarVo.setTitle("工时:" + BigDecimal.valueOf(entry.getValue()).setScale(2, RoundingMode.HALF_UP));
                calendarVo.setType(2);
            } else {
                calendarVo.setDate(entry.getKey());
                calendarVo.setIsOk(false);
                calendarVo.setTitle("已填工时:" + entry.getValue() + " 不足8小时,请补充日报");
                calendarVo.setTitle("已填工时:" + BigDecimal.valueOf(entry.getValue()).setScale(2, RoundingMode.HALF_UP) + " 不足8小时,请补充日报");
                calendarVo.setType(2);
            }
            calendarInfo.add(calendarVo);
@@ -991,6 +991,10 @@
        // 绩效详细
        returnData.put("achievementsList", resultList);
        // 换休时长
        Double overTime = attendanceLeaveService.getOverTimeLength(userId);
        returnData.put("overTime", overTime);
        return returnData;
    }