| | |
| | | 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); |
| | |
| | | // 绩效详细 |
| | | returnData.put("achievementsList", resultList); |
| | | |
| | | // 换休时长 |
| | | Double overTime = attendanceLeaveService.getOverTimeLength(userId); |
| | | returnData.put("overTime", overTime); |
| | | |
| | | return returnData; |
| | | } |
| | | |