This commit is contained in:
dinggang 2022-07-14 09:52:36 +08:00
parent 589f03a103
commit cfe6c9f240
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class CodeGenerationUtils {
"LIMIT 1";
try {
String s = jdbcTemplate.queryForObject(sql, String.class);
return "NLSY" + (Long.parseLong(s) + 1);
return applyNumberPattern.substring(0, 3) + (Long.parseLong(s) + 1);
} catch (Exception e) {
return applyNumberPattern + "0001";
} finally {