소스 검색

专家 算履职意向区域

tags/24080901
PoffyZhang 1 년 전
부모
커밋
5387dbda0b
1개의 변경된 파일17개의 추가작업 그리고 4개의 파일을 삭제
  1. +17
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

+ 17
- 4
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java 파일 보기

@@ -16,7 +16,9 @@ import com.ningdatech.pmapi.dashboard.constant.DashboardConstant;
import com.ningdatech.pmapi.dashboard.model.entity.CockpitStats;
import com.ningdatech.pmapi.dashboard.model.po.SecrecyPasswordGradePO;
import com.ningdatech.pmapi.dashboard.service.ICockpitStatsService;
import com.ningdatech.pmapi.expert.entity.ExpertIntentionWorkRegion;
import com.ningdatech.pmapi.expert.entity.ExpertUserFullInfo;
import com.ningdatech.pmapi.expert.service.IExpertIntentionWorkRegionService;
import com.ningdatech.pmapi.expert.service.IExpertUserFullInfoService;
import com.ningdatech.pmapi.gov.enumeration.GovProjectStatusEnum;
import com.ningdatech.pmapi.gov.model.entity.*;
@@ -107,6 +109,9 @@ public class CockpitStatsStatisticsTask {
@Autowired
private IEarlyWarningRecordsService earlyWarningRecordsService;

@Autowired
private IExpertIntentionWorkRegionService expertIntentionWorkRegionService;

private List<Integer> years = Lists.newArrayList(2021,2022,2023,2024,2025);

private final IMetaTagService metaTagService;
@@ -370,12 +375,20 @@ public class CockpitStatsStatisticsTask {

//2.专家统计
List<String> lsRegionCodes = RegionConst.LS_ARR;
List<ExpertUserFullInfo> experts = expertUserFullInfoService.list(Wrappers.lambdaQuery(ExpertUserFullInfo.class)
List<ExpertIntentionWorkRegion> intentions = expertIntentionWorkRegionService.list(Wrappers.lambdaQuery(ExpertIntentionWorkRegion.class)
.eq(StringUtils.isNotBlank(regionCode) && !DashboardConstant.CockpitStats.TOTAL.equals(regionCode),
ExpertUserFullInfo::getRegionCode, regionCode)
ExpertIntentionWorkRegion::getRegionCode, regionCode)
.in(StringUtils.isBlank(regionCode) || DashboardConstant.CockpitStats.TOTAL.equals(regionCode),
ExpertUserFullInfo::getRegionCode,lsRegionCodes)
.eq(ExpertUserFullInfo::getExpertAccountStatus,"available"));
ExpertIntentionWorkRegion::getRegionCode, lsRegionCodes));

List<ExpertUserFullInfo> experts = Lists.newArrayList();
if(CollUtil.isNotEmpty(intentions)){
List<Long> userIds = intentions.stream().map(ExpertIntentionWorkRegion::getUserId)
.collect(Collectors.toList());
experts = expertUserFullInfoService.list(Wrappers.lambdaQuery(ExpertUserFullInfo.class)
.in(ExpertUserFullInfo::getUserId, userIds)
.eq(ExpertUserFullInfo::getExpertAccountStatus,"available"));
}

List<ExpertTag> goodAt = expertTagService.list(Wrappers.lambdaQuery(ExpertTag.class));
Map<Long, List<ExpertTag>> tagMap = goodAt.stream()


불러오는 중...
취소
저장