添加功能
This commit is contained in:
@@ -93,4 +93,28 @@ public class AnalysisIndustryEmploymentInfoController {
|
|||||||
public AjaxResult salaryLevel(@RequestBody QueryParamDto dto) {
|
public AjaxResult salaryLevel(@RequestBody QueryParamDto dto) {
|
||||||
return AjaxResult.success(analysisIndustryEmploymentInfoService.salaryLevel(dto));
|
return AjaxResult.success(analysisIndustryEmploymentInfoService.salaryLevel(dto));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 行业技能需求TOP10
|
||||||
|
*
|
||||||
|
* @param dto 查询参数
|
||||||
|
* @return 结果列表
|
||||||
|
*/
|
||||||
|
@PostMapping("/industrySkill")
|
||||||
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
||||||
|
public AjaxResult industrySkill(@RequestBody QueryParamDto dto) {
|
||||||
|
return AjaxResult.success(analysisIndustryEmploymentInfoService.industrySkill(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 就业质量指标
|
||||||
|
*
|
||||||
|
* @param dto 查询参数
|
||||||
|
* @return 结果列表
|
||||||
|
*/
|
||||||
|
@PostMapping("/qualityIndicator")
|
||||||
|
// @Log(title = "根据枚举名称查询枚举的所有值", businessType = BusinessType.QUERY)
|
||||||
|
public AjaxResult qualityIndicator(@RequestBody QueryParamDto dto) {
|
||||||
|
return AjaxResult.success(analysisIndustryEmploymentInfoService.qualityIndicator(dto));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,4 +64,20 @@ public interface AnalysisIndustryEmploymentInfoService {
|
|||||||
* @return 结果列表
|
* @return 结果列表
|
||||||
*/
|
*/
|
||||||
List<QueryResultVo> salaryLevel(QueryParamDto dto);
|
List<QueryResultVo> salaryLevel(QueryParamDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 行业技能需求TOP10
|
||||||
|
*
|
||||||
|
* @param dto 查询参数
|
||||||
|
* @return 结果列表
|
||||||
|
*/
|
||||||
|
List<QueryResultVo> industrySkill(QueryParamDto dto);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 就业质量指标
|
||||||
|
*
|
||||||
|
* @param dto 查询参数
|
||||||
|
* @return 结果列表
|
||||||
|
*/
|
||||||
|
List<QueryResultVo> qualityIndicator(QueryParamDto dto);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,4 +143,29 @@ public class AnalysisIndustryEmploymentInfoServiceImpl implements AnalysisIndust
|
|||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<QueryResultVo> industrySkill(QueryParamDto dto) {
|
||||||
|
return new ArrayList<>();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<QueryResultVo> qualityIndicator(QueryParamDto dto) {
|
||||||
|
List<QueryResultVo> list = new ArrayList<>();
|
||||||
|
List<Tuple2<String, String>> structureList =
|
||||||
|
Collections.unmodifiableList(new ArrayList<>(Arrays.asList(
|
||||||
|
Tuples.of("1", "合同完整性"),
|
||||||
|
Tuples.of("2", "社保覆盖度"),
|
||||||
|
Tuples.of("3", "薪资稳定性"),
|
||||||
|
Tuples.of("4", "工作满意度")
|
||||||
|
)));
|
||||||
|
for (Tuple2<String, String> structure : structureList) {
|
||||||
|
list.add(QueryResultVo.builder()
|
||||||
|
.code(structure.getT1())
|
||||||
|
.desc(structure.getT2())
|
||||||
|
.amount(new BigDecimal(Math.random() * 100 + 1).setScale(2, RoundingMode.HALF_UP))
|
||||||
|
.build());
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user