From ebbae6275efd4023291889f966b0d617919eb51f Mon Sep 17 00:00:00 2001 From: yang chen Date: Fri, 12 Dec 2025 17:51:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(sql):=20=E6=9B=B4=E6=96=B0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=A1=A8=E5=90=8C=E6=AD=A5=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加了针对多个表的IS_DB_SYNC字段更新逻辑 - 修改了测试用例中的执行日期以匹配最新SQL脚本 - 新增了2025年12月11日和12日的SQL执行文件 --- SQL/202512/20251211/z_exec_last.sql | 7 +++++++ SQL/202512/20251212/z_exec_last.sql | 6 ++++++ .../tool/framework/common/util/SqlUtilsTest.java | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 SQL/202512/20251211/z_exec_last.sql create mode 100644 SQL/202512/20251212/z_exec_last.sql diff --git a/SQL/202512/20251211/z_exec_last.sql b/SQL/202512/20251211/z_exec_last.sql new file mode 100644 index 0000000..e27a11a --- /dev/null +++ b/SQL/202512/20251211/z_exec_last.sql @@ -0,0 +1,7 @@ +update + "LOWCODE_FRAME"."LOWCODE_DBFORM" +set IS_DB_SYNC='N' +where TABLE_NAME in ( + 'lc_drill_task', 'lc_outside_batch_approval', 'lc_outside_batch_approval_detail', + 'lc_outside_person' + ); \ No newline at end of file diff --git a/SQL/202512/20251212/z_exec_last.sql b/SQL/202512/20251212/z_exec_last.sql new file mode 100644 index 0000000..96686aa --- /dev/null +++ b/SQL/202512/20251212/z_exec_last.sql @@ -0,0 +1,6 @@ +update + "LOWCODE_FRAME"."LOWCODE_DBFORM" +set IS_DB_SYNC='N' +where TABLE_NAME in ( + 'campus_info', 'lc_outside_person' + ); \ No newline at end of file diff --git a/jeelowcode-admin/src/test/java/com/jeelowcode/tool/framework/common/util/SqlUtilsTest.java b/jeelowcode-admin/src/test/java/com/jeelowcode/tool/framework/common/util/SqlUtilsTest.java index f219ab6..b12029d 100644 --- a/jeelowcode-admin/src/test/java/com/jeelowcode/tool/framework/common/util/SqlUtilsTest.java +++ b/jeelowcode-admin/src/test/java/com/jeelowcode/tool/framework/common/util/SqlUtilsTest.java @@ -22,7 +22,7 @@ public class SqlUtilsTest extends BaseMockitoUnitTest { @Test public void testGenerateLastExecuteSQL() throws Exception { - String executeDateStr = "20251204"; + String executeDateStr = "20251212"; Date executeDate = DateUtil.parse(executeDateStr, "yyyyMMdd"); String monthStr = DateUtil.format(executeDate, "yyyyMM"); // 获取项目目录下的SQL目录路径