This commit is contained in:
linfso 2024-06-19 14:03:52 +08:00
parent 69be414eae
commit 9956bd4dfc

View File

@ -216,7 +216,7 @@ public class EmisCommonController extends EmisBaseController
ex.printStackTrace();
}
String batchKey= "B"+siteThreeCode+DateUtils.parseDateToStr(DTF,new Date());
String batchKey= "B"+siteThreeCode+DateUtils.parseDateToStr(yyMMdd,new Date());
Long lockNo = redissonService.addAndGetLong(batchKey,1L);
String batchNo =batchKey+ "-" +StringUtils.leftPad(String.valueOf(lockNo),2,"0");
return AjaxResult.success("获取成功",batchNo);