团队赛队员位次比值配置

main
zhc077 3 months ago
parent 06fdd0c6e0
commit 5f9b025178
  1. 8
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/controller/UserHomePageController.java
  2. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageService.java
  3. 18
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/homepage/service/UserHomePageServiceImpl.java

@ -48,15 +48,15 @@ public class UserHomePageController {
@AutoLog(value = "学校管理员-分析报告")
@ApiOperation(value = "河南机电-学校综合报告", notes = "河南机电-学校综合报告")
@GetMapping(value = "/report4School")
public Result report4School(String year, boolean recreateFlag) {
Object result = homePageService.report4School(year,recreateFlag);
public Result report4School(String annualId, boolean recreateFlag) {
Object result = homePageService.report4School(annualId,recreateFlag);
return Result.ok(result);
}
@AutoLog(value = "部门管理员-分析报告")
@ApiOperation(value = "河南机电-部门综合报告", notes = "河南机电-部门综合报告")
@GetMapping(value = "/report4Depart")
public Result report4Depart(String year,String orgCode, boolean recreateFlag) {
return Result.ok(homePageService.report4Depart(year,orgCode, recreateFlag));
public Result report4Depart(String annualId,String orgCode, boolean recreateFlag) {
return Result.ok(homePageService.report4Depart(annualId,orgCode, recreateFlag));
}
}

@ -8,7 +8,7 @@ public interface UserHomePageService {
Map<String, Object> homePage4School();
Object report4School(String year,boolean recreateFlag);
Object report4School(String annualId,boolean recreateFlag);
Object report4Depart(String year,String orgCode, boolean recreateFlag);
Object report4Depart(String annualId,String orgCode, boolean recreateFlag);
}

@ -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);
}
}
}

Loading…
Cancel
Save