Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-07-14 09:56:15 +08:00
commit 2149d0b5e5
1 changed files with 1 additions and 0 deletions

View File

@ -100,6 +100,7 @@ public class CodeGenerationUtils {
String s = jdbcTemplate.queryForObject(sql, String.class);
return applyNumberPattern.substring(0, 3) + (Long.parseLong(s) + 1);
} catch (Exception e) {
logger.error("流水号生成失败", e);
return applyNumberPattern + "0001";
} finally {
lock.unlock();