From 948b8191b8f32ce002b3f418b3669e01f745bcaa Mon Sep 17 00:00:00 2001 From: bingbo <bingbo1993@126.com> Date: 星期日, 26 十一月 2023 10:46:47 +0800 Subject: [PATCH] 环号位数 --- hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java b/hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java index ce9a32b..7b5d9a9 100644 --- a/hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java +++ b/hd/pipe/mobile/src/main/java/com/thhy/mobile/modules/biz/mouldcheck/service/impl/ModCheckServiceImpl.java @@ -199,7 +199,7 @@ String proId = modCheckDto.getProId(); try { - if(ringNum.length()>5){ + if(ringNum.length()>4){ throw new BasicException(BasicStatus.RING_NOT_DIS); } Integer.parseInt(ringNum); @@ -207,7 +207,7 @@ throw new BasicException(BasicStatus.RING_NOT_DIS); } - String newRingNum = UUIDUtils.addZeroNoPlus(Integer.parseInt(ringNum),5); + String newRingNum = UUIDUtils.addZeroNoPlus(Integer.parseInt(ringNum),4); int count = pipeInfoMapper.countByRingNum(newRingNum); if(count>0){ -- Gitblit v1.9.3