@@ -378,7 +378,7 @@ public class ProjectConvert { | |||||
req.setBaseAccountAppName(apply.getBaseAccountAppName()); | req.setBaseAccountAppName(apply.getBaseAccountAppName()); | ||||
req.setBaseBasisEstablish(apply.getBaseBasisEstablish()); | req.setBaseBasisEstablish(apply.getBaseBasisEstablish()); | ||||
req.setBaseCoreBusiness(apply.getBaseCoreBusiness()); | req.setBaseCoreBusiness(apply.getBaseCoreBusiness()); | ||||
req.setBaseCoreBusinessCode(apply.getBaseCoreBusinessCode()); | |||||
// req.setBaseCoreBusinessCode(apply.getBaseCoreBusinessCode()); | |||||
req.setBaseBrainName(apply.getBaseBrainName()); | req.setBaseBrainName(apply.getBaseBrainName()); | ||||
req.setBaseDevelopCode(apply.getBaseDevelopCode()); | req.setBaseDevelopCode(apply.getBaseDevelopCode()); | ||||
req.setBaseLowestLevel(apply.getBaseLowestLevel()); | req.setBaseLowestLevel(apply.getBaseLowestLevel()); | ||||
@@ -389,7 +389,7 @@ public class GovProjectCollectionManage { | |||||
} | } | ||||
GovBizProjectBaseinfoDTO base = saveDTO.getBaseinfo(); | GovBizProjectBaseinfoDTO base = saveDTO.getBaseinfo(); | ||||
String baseProjId = base.getBaseProjId(); | |||||
String baseProjId = saveDTO.getBaseProjId(); | |||||
String baseAreaCode = user.getRegionCode() + BizConst.NINE_AREA_CODE_LAST; | String baseAreaCode = user.getRegionCode() + BizConst.NINE_AREA_CODE_LAST; | ||||
String baseProjName = base.getBaseProjName(); | String baseProjName = base.getBaseProjName(); | ||||
@@ -69,7 +69,7 @@ public class GovBizProjectApplyDTO implements Serializable { | |||||
private LocalDateTime baseProjEndTime; | private LocalDateTime baseProjEndTime; | ||||
@ApiModelProperty("项目期限") | @ApiModelProperty("项目期限") | ||||
private LocalDateTime baseProjDuration; | |||||
private String baseProjDuration; | |||||
@ApiModelProperty("项目年度") | @ApiModelProperty("项目年度") | ||||
private String baseProjSetYear; | private String baseProjSetYear; | ||||
@@ -67,7 +67,7 @@ public class SynProjectCoreBizTask { | |||||
* 定时同步前置机数据 每天1点开始执行一次 不按照单位 | * 定时同步前置机数据 每天1点开始执行一次 不按照单位 | ||||
* | * | ||||
*/ | */ | ||||
@Scheduled(cron = "0 0 2 * * ?") | |||||
// @Scheduled(cron = "0 0 2 * * ?") | |||||
public void doTask() throws UnknownHostException { | public void doTask() throws UnknownHostException { | ||||
if (!HOST.equals(InetAddress.getLocalHost().getHostName())) { | if (!HOST.equals(InetAddress.getLocalHost().getHostName())) { | ||||
log.info("定时器没开启或者host不对! {}:{}", | log.info("定时器没开启或者host不对! {}:{}", | ||||
@@ -79,7 +79,13 @@ public class SynProjectCoreBizTask { | |||||
StopWatch stopWatch = new StopWatch(); | StopWatch stopWatch = new StopWatch(); | ||||
stopWatch.start(); | stopWatch.start(); | ||||
syncCoreBiz(); | |||||
List<DingOrganization> orgs = organizationService.list(Wrappers.lambdaQuery(DingOrganization.class) | |||||
.in(DingOrganization::getTypeCode, Lists.newArrayList(DingOrganizationContant.UNIT_TYPE | |||||
, DingOrganizationContant.GOV_TEMPORARY))); | |||||
log.info("总共需要同步 orgs size :{}",orgs.size()); | |||||
syncCoreBiz(orgs); | |||||
stopWatch.stop(); | stopWatch.stop(); | ||||
log.info("同步项目核心业务结束====={}s",stopWatch.getTotalTimeSeconds()); | log.info("同步项目核心业务结束====={}s",stopWatch.getTotalTimeSeconds()); | ||||
} | } | ||||