...
This commit is contained in:
parent
589f03a103
commit
cfe6c9f240
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue