From 4d730af0447c686133130d0116a0fa3dd82c2dca Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:41:03 +0000
Subject: [PATCH] Merge branch 'wcd-2411-update' into wcd
---
eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceMonthServiceImpl.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceMonthServiceImpl.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceMonthServiceImpl.java
index 5ee1085..6e87b6f 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceMonthServiceImpl.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/attendance/service/impl/AttendanceMonthServiceImpl.java
@@ -21,8 +21,6 @@
import me.zhengjie.modules.attendance.domain.AttendanceMonthLeave;
import me.zhengjie.modules.attendance.repository.AttendanceMonthLeaveRepository;
import me.zhengjie.modules.constant.Constant;
-import me.zhengjie.modules.salary.domain.Salary;
-import me.zhengjie.modules.salary.service.dto.SalaryDto;
import me.zhengjie.modules.system.domain.Dept;
import me.zhengjie.modules.system.domain.Job;
import me.zhengjie.modules.system.domain.SysCompany;
@@ -43,6 +41,7 @@
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
+import java.time.LocalDateTime;
import java.util.*;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
@@ -82,7 +81,7 @@
// 登录用户最大角色等级
int min = Collections.min(levels);
// 判断角色等级
- if (min == Constant.ROLE_LEVEL_MANAGER || min == Constant.ROLE_LEVEL_LEADER || min == Constant.ROLE_LEVEL_ORDINARY) {
+ if (Constant.BASE_LEVEL_LIST.contains(Long.valueOf(min))) {
criteria.setUserId(SecurityUtils.getCurrentUserId());
criteria.setIsPublicity(Constant.PUBLICITY_STATUS_YES);
}
@@ -124,7 +123,7 @@
leaveTypeList.add(attTypeInfo);
}
}else{
- Double yearTime = attendanceLeaveService.getYearTimeLength(attendanceMonthDto.getUserId());
+ Double yearTime = attendanceLeaveService.getYearTimeLength(attendanceMonthDto.getUserId(), null);
attendanceMonthDto.setYearTime(yearTime);
}
attendanceMonthDto.setLeaveTypeList(leaveTypeList);
@@ -315,10 +314,10 @@
map.put("当月使用调休假", locationLeave);
map.put("当月使用事假", compassionateLeave);
- Double yearTime = attendanceLeaveService.getYearTimeLength(attendanceMonth.getUserId());
+ Double yearTime = attendanceLeaveService.getYearTimeLength(attendanceMonth.getUserId(), null);
map.put("剩余年假", yearTime);
- Double overTime = attendanceLeaveService.getOverTimeLength(attendanceMonth.getUserId());
+ Double overTime = attendanceLeaveService.getOverTimeLength(attendanceMonth.getUserId(), LocalDateTime.now());
map.put("剩余调休假", overTime);
map.put("上班缺卡次数", attendanceMonth.getOnCardNumber());
--
Gitblit v1.9.3