Przeglądaj źródła

运维备案 支持重新生成

tags/24080901
PoffyZhang 1 rok temu
rodzic
commit
bbb0f9ee6c
3 zmienionych plików z 60 dodań i 5 usunięć
  1. +22
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java
  2. +34
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java
  3. +4
    -5
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java

+ 22
- 0
pmapi/src/main/java/com/ningdatech/pmapi/common/constant/RegionConst.java Wyświetl plik

@@ -1,5 +1,9 @@
package com.ningdatech.pmapi.common.constant;

import com.google.common.collect.Lists;

import java.util.List;

/**
* <p>
* RegionConst
@@ -44,6 +48,24 @@ public interface RegionConst {
String RC_ZJ = "330000";

String NINE_CODE_LAST = "000";
//莲都
String LD = "331102";
//青田
String QT = "331121";
//缙云
String JY = "331122";
//遂昌
String SC = "331123";
//松阳
String SY = "331124";
//云和
String YH = "331125";
//庆元
String QY = "331126";
String QN = "331127";
String LQ = "331181";

List<String> LS_ARR = Lists.newArrayList(RC_LS,LS_KF,LD,QT,JY,SC,SY,YH,QY,QN,LQ);

//----------------------------------------地区父级ID(缩写PID)---------------------------------------------------------



+ 34
- 0
pmapi/src/main/java/com/ningdatech/pmapi/gov/utils/ProjectConvertUtil.java Wyświetl plik

@@ -0,0 +1,34 @@
package com.ningdatech.pmapi.gov.utils;

import com.ningdatech.pmapi.gov.model.vo.GovBizProjectDetailVO;
import com.ningdatech.pmapi.projectlib.model.entity.Project;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Objects;

/**
* @Classname ProjectCollectionUtil
* @Description
* @Date 2023/9/14 9:07
* @Author PoffyZhang
*/
public class ProjectConvertUtil {

/**
* 申报项目 转为 项目归集
* @param project
* @return
*/
public static GovBizProjectDetailVO declaredToCollection(Project project){
GovBizProjectDetailVO projectCollection = new GovBizProjectDetailVO();
if(Objects.isNull(project)){
return projectCollection;
}
String projectCode = project.getProjectCode();
String projectName = project.getProjectName();
projectCollection.setBaseProjId(projectCode);
return projectCollection;
}

}

+ 4
- 5
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/CockpitStatsStatisticsTask.java Wyświetl plik

@@ -22,7 +22,6 @@ import com.ningdatech.pmapi.gov.enumeration.GovProjectStatusEnum;
import com.ningdatech.pmapi.gov.model.entity.*;
import com.ningdatech.pmapi.gov.service.*;
import com.ningdatech.pmapi.meta.model.entity.ExpertTag;
import com.ningdatech.pmapi.meta.model.entity.MetaTag;
import com.ningdatech.pmapi.meta.service.IExpertTagService;
import com.ningdatech.pmapi.meta.service.IMetaTagService;
import com.ningdatech.pmapi.performance.model.entity.PerformanceAppraisalProject;
@@ -106,9 +105,6 @@ public class CockpitStatsStatisticsTask {
private IGovBizProjectCimplementService cimplementService;

@Autowired
private IGovOperationProjectBaseinfoService operationBaseInfoService;

@Autowired
private IEarlyWarningRecordsService earlyWarningRecordsService;

private List<Integer> years = Lists.newArrayList(2021,2022,2023,2024,2025);
@@ -371,9 +367,12 @@ public class CockpitStatsStatisticsTask {
}

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

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


Ładowanie…
Anuluj
Zapisz