From 510a929212d42b3963e70087d41f5d13a2ab32f5 Mon Sep 17 00:00:00 2001 From: zhenggl Date: Wed, 13 Sep 2023 14:18:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:stringbuider=E4=BF=AE=E6=94=B9=E4=B8=BAstr?= =?UTF-8?q?ingbuffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/ptc/service/production/ProductionCreateEAIService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java index a1097de..8dbd85c 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java @@ -99,7 +99,7 @@ public class ProductionCreateEAIService extends AbsEAIService { } private String cteateBatchNo(){ - StringBuilder sb = new StringBuilder(); + StringBuffer sb = new StringBuffer(); Long batchNo; if (redisUtil.getRedisTemplate().hasKey(ProductionUtil.KEY)) { batchNo = redisUtil.incrBy(ProductionUtil.KEY, 1);