diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java index 72c22be9..040a7918 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java @@ -376,7 +376,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { if (recreateFlag) { //年度 Annual annual = iAnnualService.getOne(new LambdaQueryWrapper().eq(Annual::getAnnualName, currentYear + "")); - if(ObjectUtils.isEmpty(annual)) return resultMap; + if (ObjectUtils.isEmpty(annual)) return resultMap; List annualCompList = iAnnualCompService.list(new LambdaQueryWrapper() .eq(AnnualComp::getAnnualid, annual.getId())); @@ -638,7 +638,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { String departId = sysDepart.getParentId(); //当前年度 Annual annual = iAnnualService.getOne(new LambdaQueryWrapper().eq(Annual::getAnnualName, currentYear + "")); - if(ObjectUtils.isEmpty(annual)) return resultMap; + if (ObjectUtils.isEmpty(annual)) return resultMap; List compList = iCompService.list(new LambdaQueryWrapper().eq(Comp::getCompOrgan, departId)); Set compIds = Optional.ofNullable(compList).orElse(new LinkedList<>()).stream().map(obj -> obj.getId()).collect(Collectors.toSet()); @@ -825,7 +825,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { if (hasKey) { return redisUtil.get(REPORT4DEPART); } else { - return this.report4Depart(orgCode, yearStr, true); + return this.report4Depart(yearStr, orgCode, true); } } }