This commit is contained in:
wangliwen 2022-07-15 11:27:35 +08:00
parent 6ba099605d
commit d7a45b2d17
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ public class CodeGenerationUtils {
logger.error("流水号生成失败", e); logger.error("流水号生成失败", e);
no = applyNumberPattern + "0001"; no = applyNumberPattern + "0001";
} finally { } finally {
String sql_ = String.format("UPDATE %s SET apply_number = %s WHERE id = %s", tableName, no, id); String sql_ = String.format("UPDATE %s SET apply_number = '%s' WHERE id = %s", tableName, no, id);
logger.info(sql_); logger.info(sql_);
jdbcTemplate.update(sql_); jdbcTemplate.update(sql_);
lock.unlock(); lock.unlock();