From 78c96c56019e7ced3090bcab3985939ec4710a71 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Mon, 20 Nov 2023 13:46:16 +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 ++-- 1 file changed, 2 insertions(+), 2 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 bc282b6..aa32fcc 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 @@ -64,7 +64,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) @@ -105,7 +105,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)