From 7fed86ce340536a86aa77ec12b2a2b376ee07bb3 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 20 Nov 2023 11:55:12 +0800 Subject: [PATCH] =?UTF-8?q?debug=E6=96=B0=E8=BF=90=E7=BB=B4=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java | 4 ++-- .../com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java index a358dd1..bc282b6 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java @@ -152,7 +152,7 @@ public class GenerateProjectCodeUtil { .orderByDesc(GovOperationProjectBaseinfo::getBaseProjId) .last(BizConst.LIMIT_1)); if(Objects.nonNull(operationBaseMax) && StringUtils.isNotBlank(operationBaseMax.getBaseProjId())){ - Long operationMax = Long.valueOf(baseMax.getBaseProjId().substring(baseMax.getBaseProjId().length() - 5)); + Long operationMax = Long.valueOf(operationBaseMax.getBaseProjId().substring(operationBaseMax.getBaseProjId().length() - 5)); max = Math.max(max,operationMax); } Project projectMax = projectService.getOne(Wrappers.lambdaQuery(Project.class) @@ -199,7 +199,7 @@ public class GenerateProjectCodeUtil { .orderByDesc(GovOperationProjectBaseinfo::getBaseProjId) .last(BizConst.LIMIT_1)); if(Objects.nonNull(operationBaseMax) && StringUtils.isNotBlank(operationBaseMax.getBaseProjId())){ - Long operationMax = Long.valueOf(baseMax.getBaseProjId().substring(baseMax.getBaseProjId().length() - 5)); + Long operationMax = Long.valueOf(operationBaseMax.getBaseProjId().substring(operationBaseMax.getBaseProjId().length() - 5)); max = Math.max(max,operationMax); } Project projectMax = projectService.getOne(Wrappers.lambdaQuery(Project.class) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java index 4118141..4566d1a 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/EarlyWarningProjectTask.java @@ -28,7 +28,7 @@ public class EarlyWarningProjectTask { @Value("${hostname}") private String HOST_NAME; - @Scheduled(fixedDelay = 12000) + @Scheduled(fixedDelay = 6000 * 120) public void doEarlyWarningDeclared() throws UnknownHostException { if (!HOST_NAME.equals(InetAddress.getLocalHost().getHostName())) { return;