Commit 3f653fd1 authored by nie'hong's avatar nie'hong

完善工时统计

parent 7a2d7c9d
......@@ -569,13 +569,11 @@ public class StatisticsServiceImpl implements StatisticsService {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.NO_AUTHORITY);
}
// 不是中心级不能选择部门,只能查看自己部门的信息
if (!rank.contains(LevelRankEnum.CENTRAL_LEVEL.getRank()) && !deptId.equals(user.getDeptId())) {
if (!rank.contains(LevelRankEnum.CENTRAL_LEVEL.getRank()) && !user.getDeptId().equals(deptId)) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.NO_AUTHORITY);
}
// 默认统计截至时间为当天
if (StringUtil.isEmpty(endDate)) {
Date date = new Date();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment