添加功能
This commit is contained in:
@@ -332,6 +332,8 @@ public class AnalysisMajorIndustryEmploymentMonitorServiceImpl implements Analys
|
|||||||
@Override
|
@Override
|
||||||
public List<QueryResultVo> jobType(QueryParamDto dto) {
|
public List<QueryResultVo> jobType(QueryParamDto dto) {
|
||||||
|
|
||||||
|
dealParam(dto);
|
||||||
|
|
||||||
// 用工需求
|
// 用工需求
|
||||||
List<QueryResultVo> laborDemandList = themeRecruitmentJobMapper.queryEmploymentDemandCountByJobType(dto);
|
List<QueryResultVo> laborDemandList = themeRecruitmentJobMapper.queryEmploymentDemandCountByJobType(dto);
|
||||||
// 就业
|
// 就业
|
||||||
@@ -366,7 +368,8 @@ public class AnalysisMajorIndustryEmploymentMonitorServiceImpl implements Analys
|
|||||||
.orElse(QueryResultVo.builder().build());
|
.orElse(QueryResultVo.builder().build());
|
||||||
|
|
||||||
BigDecimal unEmploymentRate =
|
BigDecimal unEmploymentRate =
|
||||||
MathUtil.calculatePercentage((employment.getCount() + unemployment.getCount()),
|
MathUtil.calculatePercentage((Optional.ofNullable(employment.getCount()).orElse(0L)
|
||||||
|
+ Optional.ofNullable(unemployment.getCount()).orElse(0L)),
|
||||||
unemployment.getCount());
|
unemployment.getCount());
|
||||||
|
|
||||||
QueryResultVo vo = QueryResultVo.builder()
|
QueryResultVo vo = QueryResultVo.builder()
|
||||||
|
|||||||
Reference in New Issue
Block a user