From d7a45b2d1762adb6bd540fdbd06b70bdf5115020 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 15 Jul 2022 11:27:35 +0800 Subject: [PATCH] ... --- .../main/java/io/renren/common/utils/CodeGenerationUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/common/utils/CodeGenerationUtils.java b/renren-admin/src/main/java/io/renren/common/utils/CodeGenerationUtils.java index 8808f5bb..2254a8c0 100644 --- a/renren-admin/src/main/java/io/renren/common/utils/CodeGenerationUtils.java +++ b/renren-admin/src/main/java/io/renren/common/utils/CodeGenerationUtils.java @@ -153,7 +153,7 @@ public class CodeGenerationUtils { logger.error("流水号生成失败", e); no = applyNumberPattern + "0001"; } 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_); jdbcTemplate.update(sql_); lock.unlock();