|
|
@ -28,78 +28,78 @@ public class FactIndexController { |
|
|
|
private FactIndexService factIndexService; |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 能力指数 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/ablityindex") |
|
|
|
public Result<List<AblityIndexResultDTO>> ablityIndex(@LoginUser TokenDto tokenDTO, @RequestBody AblityIndexFormDTO formDTO) { |
|
|
|
public Result<List<AblityIndexResultDTO>> ablityIndex(@RequestBody AblityIndexFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, AblityIndexFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<AblityIndexResultDTO>>().ok(factIndexService.ablityIndex(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 按月份查询各项能力分数 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/scorelist") |
|
|
|
public Result<List<ScoreListResultDTO>> scoreList(@LoginUser TokenDto tokenDTO, @RequestBody ScoreListFormDTO formDTO) { |
|
|
|
public Result<List<ScoreListResultDTO>> scoreList(@RequestBody ScoreListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, ScoreListFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<ScoreListResultDTO>>().ok(factIndexService.scoreList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 按月份查询各项能力最近12个月得分 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/monthscorelist") |
|
|
|
public Result<List<MonthScoreListResultDTO>> monthScoreList(@LoginUser TokenDto tokenDTO, @RequestBody MonthScoreListFormDTO formDTO) { |
|
|
|
public Result<List<MonthScoreListResultDTO>> monthScoreList(@RequestBody MonthScoreListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, MonthScoreListFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<MonthScoreListResultDTO>>().ok(factIndexService.monthScoreList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 按月查询各项指标数据 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/ablitylist") |
|
|
|
public Result<List<AblityListResultDTO>> ablityList(@LoginUser TokenDto tokenDTO, @RequestBody AblityListFormDTO formDTO) { |
|
|
|
public Result<List<AblityListResultDTO>> ablityList(@RequestBody AblityListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, AblityListFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<AblityListResultDTO>>().ok(factIndexService.ablityList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 按月查询各项指标最近12个月数据 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/monthablitylist") |
|
|
|
public Result<List<MonthAblityListResultDTO>> monthAblityList(@LoginUser TokenDto tokenDTO, @RequestBody MonthAblityListFormDTO formDTO) { |
|
|
|
public Result<List<MonthAblityListResultDTO>> monthAblityList(@RequestBody MonthAblityListFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, MonthAblityListFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<MonthAblityListResultDTO>>().ok(factIndexService.monthAblityList(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 同级对比各项数据查询 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/peercomparison") |
|
|
|
public Result<List<PeerComparisonResultDTO>> peerComparison(@LoginUser TokenDto tokenDTO, @RequestBody PeerComparisonFormDTO formDTO) { |
|
|
|
public Result<List<PeerComparisonResultDTO>> peerComparison(@RequestBody PeerComparisonFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, PeerComparisonFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<List<PeerComparisonResultDTO>>().ok(factIndexService.peerComparison(formDTO)); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param tokenDTO |
|
|
|
* @param formDTO |
|
|
|
* @Description 是否根组织 |
|
|
|
* @author sun |
|
|
|
*/ |
|
|
|
@PostMapping("index/rootagency") |
|
|
|
public Result<RootAgencyResultDTO> rootAgency(@LoginUser TokenDto tokenDTO, @RequestBody RootAgencyFormDTO formDTO) { |
|
|
|
public Result<RootAgencyResultDTO> rootAgency(@RequestBody RootAgencyFormDTO formDTO) { |
|
|
|
ValidatorUtils.validateEntity(formDTO, RootAgencyFormDTO.AddUserInternalGroup.class); |
|
|
|
return new Result<RootAgencyResultDTO>().ok(factIndexService.rootAgency(formDTO)); |
|
|
|
} |
|
|
|