From 0df5a1c5b38c072df884955303dde5fd2b7dc6c7 Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Sun, 24 Jul 2022 23:22:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=8F=B7=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../coe/pal/publisher/client/util/ProcesNumberUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/util/ProcesNumberUtil.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/util/ProcesNumberUtil.java index 0f165ace..293caa4b 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/util/ProcesNumberUtil.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/client/util/ProcesNumberUtil.java @@ -66,14 +66,12 @@ public class ProcesNumberUtil { //依次生成编号~并回填 if(UtilString.isNotEmpty(levelTwo)){ - String[] str = levelTwo.split("."); - levelTwo =str[1]; + levelTwo =levelTwo.substring(levelTwo.indexOf(".")+1,levelTwo.length()); }else{ levelTwo = "00"; } if(UtilString.isNotEmpty(levelThree)){ - String[] str = levelThree.split("."); - levelThree =str[2]; + levelThree =levelThree.substring(levelThree.lastIndexOf(".")+1,levelThree.length()); }else{ levelThree = "00"; }