Browse Source

feat:stringbuider修改为stringbuffer

master
郑贵龙 1 year ago
parent
commit
510a929212
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java

+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java View File

@ -99,7 +99,7 @@ public class ProductionCreateEAIService extends AbsEAIService {
} }
private String cteateBatchNo(){ private String cteateBatchNo(){
StringBuilder sb = new StringBuilder();
StringBuffer sb = new StringBuffer();
Long batchNo; Long batchNo;
if (redisUtil.getRedisTemplate().hasKey(ProductionUtil.KEY)) { if (redisUtil.getRedisTemplate().hasKey(ProductionUtil.KEY)) {
batchNo = redisUtil.incrBy(ProductionUtil.KEY, 1); batchNo = redisUtil.incrBy(ProductionUtil.KEY, 1);


Loading…
Cancel
Save