添加功能
This commit is contained in:
@@ -40,4 +40,11 @@ public interface AnalysisCommonService {
|
||||
* @return 重点行业列表
|
||||
*/
|
||||
List<DictVo> majorIndustryList();
|
||||
|
||||
/**
|
||||
* 查询产业列表
|
||||
*
|
||||
* @return 产业列表
|
||||
*/
|
||||
List<DictVo> sectorList();
|
||||
}
|
||||
|
||||
@@ -62,4 +62,14 @@ public class AnalysisCommonServiceImpl implements AnalysisCommonService {
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DictVo> sectorList() {
|
||||
List<DictVo> list = new ArrayList<>();
|
||||
for (Tuple2<String, String> industry : CommonConstant.SECTOR_LIST) {
|
||||
list.add(DictVo.builder().code(industry.getT1()).desc(industry.getT2()).build());
|
||||
}
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,8 +79,7 @@ public class AnalysisSectorTalentServiceImpl implements AnalysisSectorTalentServ
|
||||
@Override
|
||||
public List<QueryResultVo> talentDemandStructure(QueryParamDto dto) {
|
||||
List<QueryResultVo> list = new ArrayList<>();
|
||||
|
||||
for (Tuple2<String, String> industry : CommonConstant.INDUSTRY_LIST) {
|
||||
for (Tuple2<String, String> industry : CommonConstant.SECTOR_LIST) {
|
||||
list.add(QueryResultVo.builder()
|
||||
.code(industry.getT1())
|
||||
.desc(industry.getT2())
|
||||
@@ -137,7 +136,7 @@ public class AnalysisSectorTalentServiceImpl implements AnalysisSectorTalentServ
|
||||
@Override
|
||||
public List<QueryResultVo> talentSupplyDemandMatchingDegree(QueryParamDto dto) {
|
||||
List<QueryResultVo> list = new ArrayList<>();
|
||||
for (Tuple2<String, String> industry : CommonConstant.MAJOR_INDUSTRY_LIST) {
|
||||
for (Tuple2<String, String> industry : CommonConstant.SECTOR_LIST) {
|
||||
list.add(QueryResultVo.builder()
|
||||
.code(industry.getT1())
|
||||
.desc(industry.getT2())
|
||||
|
||||
Reference in New Issue
Block a user