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