瀏覽代碼

debug新运维项目

master
PoffyZhang 11 月之前
父節點
當前提交
78c96c5601
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/projectdeclared/utils/GenerateProjectCodeUtil.java

+ 2
- 2
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)


Loading…
取消
儲存