|
|
|
@ -363,11 +363,12 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Object report4School(String yearStr, boolean recreateFlag) { |
|
|
|
|
public Object report4School(String annualId, boolean recreateFlag) { |
|
|
|
|
|
|
|
|
|
String currentYear; |
|
|
|
|
if (StringUtils.isNotBlank(yearStr)) { |
|
|
|
|
currentYear = yearStr; |
|
|
|
|
if (StringUtils.isNotBlank(annualId)) { |
|
|
|
|
Annual annual = iAnnualService.getById(annualId); |
|
|
|
|
currentYear = annual.getAnnualName(); |
|
|
|
|
}else { |
|
|
|
|
currentYear = DateUtils.getCurrentYear() + ""; |
|
|
|
|
} |
|
|
|
@ -598,7 +599,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
|
if (hasKey) { |
|
|
|
|
return redisUtil.get(REPORT4SCHOOL); |
|
|
|
|
} else { |
|
|
|
|
return this.report4School(yearStr, true); |
|
|
|
|
return this.report4School(annualId, true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -618,13 +619,14 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Object report4Depart(String yearStr, String orgCode, boolean recreateFlag) { |
|
|
|
|
public Object report4Depart(String annualId, String orgCode, boolean recreateFlag) { |
|
|
|
|
|
|
|
|
|
Assert.notNull(orgCode, "部门编号不能为空"); |
|
|
|
|
Map<String, Object> resultMap = new LinkedHashMap<>(); |
|
|
|
|
String currentYear; |
|
|
|
|
if (StringUtils.isNotBlank(yearStr)) { |
|
|
|
|
currentYear = yearStr; |
|
|
|
|
if (StringUtils.isNotBlank(annualId)) { |
|
|
|
|
Annual annual = iAnnualService.getById(annualId); |
|
|
|
|
currentYear = annual.getAnnualName(); |
|
|
|
|
} else { |
|
|
|
|
currentYear = DateUtils.getCurrentYear() + ""; |
|
|
|
|
} |
|
|
|
@ -825,7 +827,7 @@ public class UserHomePageServiceImpl implements UserHomePageService { |
|
|
|
|
if (hasKey) { |
|
|
|
|
return redisUtil.get(REPORT4DEPART); |
|
|
|
|
} else { |
|
|
|
|
return this.report4Depart(yearStr, orgCode, true); |
|
|
|
|
return this.report4Depart(annualId, orgCode, true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|