Commit f23879f0 authored by nie'hong's avatar nie'hong

完善工时统计

parent 7b60811d
...@@ -743,10 +743,10 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -743,10 +743,10 @@ public class StatisticsServiceImpl implements StatisticsService {
List<WorkLevel> workLevels = UserRoleLevelUtils.getlevelByIds(list); List<WorkLevel> workLevels = UserRoleLevelUtils.getlevelByIds(list);
List<Integer> rank = this.getUserRank(workLevels, LevelEnum.PROJECT_STATISTICS.getLevelName()); List<Integer> rank = this.getUserRank(workLevels, LevelEnum.PROJECT_STATISTICS.getLevelName());
// 非中心级不能选择部门 // // 非中心级不能选择部门
if (!rank.contains(LevelRankEnum.CENTRAL_LEVEL.getRank()) && deptId != null) { // if (!rank.contains(LevelRankEnum.CENTRAL_LEVEL.getRank()) && deptId != null) {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.NO_AUTHORITY); // throw new BaseCustomException(BASE_RESP_CODE_ENUM.NO_AUTHORITY);
} // }
// 默认查询时间为当前 // 默认查询时间为当前
if (year == null) { if (year == null) {
...@@ -847,7 +847,7 @@ public class StatisticsServiceImpl implements StatisticsService { ...@@ -847,7 +847,7 @@ public class StatisticsServiceImpl implements StatisticsService {
startDate = projectStatisticsByMonths.get(0).getStatisticsDateAndWorkTimes().get(0).getDate(); startDate = projectStatisticsByMonths.get(0).getStatisticsDateAndWorkTimes().get(0).getDate();
endDate = workProjectMapper.getLastDate(projectId); endDate = workProjectMapper.getLastDate(projectId);
} else { } else {
if (year < DateUtil.getYear(new Date())) { if (year != DateUtil.getYear(new Date())) {
startDate = year + "年1月"; startDate = year + "年1月";
endDate = year + "年12月"; endDate = year + "年12月";
}else { }else {
......
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