weicd
2023-01-16 1216f0ee75ea050f3ac78869169a4f8089d94a56
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceLeaveServiceImpl.java
@@ -505,15 +505,17 @@
    public void download(List<AttendanceLeaveDto> all, HttpServletResponse response) throws IOException {
        List<Map<String, Object>> list = new ArrayList<>();
        for (AttendanceLeaveDto attendanceLeave : all) {
            String leavrType = attendanceLeave.getLeaveType() != null ? dictDetailRepository.findByDictNameAndValue(Constant.LEAVE_TYPE, attendanceLeave.getLeaveType()).getLabel() : "";
            String leaveStatus = attendanceLeave.getApprovalStatus() != null ? dictDetailRepository.findByDictNameAndValue(Constant.APPROVAL_STATUS, attendanceLeave.getApprovalStatus()).getLabel() : "";
            Map<String,Object> map = new LinkedHashMap<>();
            map.put("用户ID", attendanceLeave.getUserId());
            map.put("审批用户ID", attendanceLeave.getApprovalUserId());
            map.put("请假类型", attendanceLeave.getLeaveType());
            map.put("请假类型", leavrType);
            map.put("请假开始时间", attendanceLeave.getLeaveStartTime());
            map.put("请假结束时间", attendanceLeave.getLeaveEndTime());
            map.put("请假时长", attendanceLeave.getLeaveDuration());
            map.put("请假原因", attendanceLeave.getLeaveReason());
            map.put("审批状态", attendanceLeave.getApprovalStatus());
            map.put("审批状态", leaveStatus);
            map.put("审批说明", attendanceLeave.getApprovalDescription());
            map.put("备注", attendanceLeave.getRemarks());
            map.put("创建者", attendanceLeave.getCreateBy());