From 40a93c5dc9ac6a17db252bb83e324336ae4baec2 Mon Sep 17 00:00:00 2001 From: yang chen Date: Fri, 5 Dec 2025 17:34:57 +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?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加新的SQL脚本以重置指定表的同步状态 - 修改测试用例中的执行日期以匹配最新SQL脚本 - 新增对多个操作类表的同步状态更新支持 --- SQL/202512/20251203/z_exec_last.sql | 8 ++++++++ SQL/202512/20251204/z_exec_last.sql | 8 ++++++++ .../tool/framework/common/util/SqlUtilsTest.java | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 SQL/202512/20251203/z_exec_last.sql create mode 100644 SQL/202512/20251204/z_exec_last.sql diff --git a/SQL/202512/20251203/z_exec_last.sql b/SQL/202512/20251203/z_exec_last.sql new file mode 100644 index 0000000..b418c47 --- /dev/null +++ b/SQL/202512/20251203/z_exec_last.sql @@ -0,0 +1,8 @@ +update + "LOWCODE_FRAME"."LOWCODE_DBFORM" + set + IS_DB_SYNC='N' + where + TABLE_NAME in ( + 'lc_building','lc_power_env_device','lc_power_env_monitor_metric' + ); \ No newline at end of file diff --git a/SQL/202512/20251204/z_exec_last.sql b/SQL/202512/20251204/z_exec_last.sql new file mode 100644 index 0000000..0702709 --- /dev/null +++ b/SQL/202512/20251204/z_exec_last.sql @@ -0,0 +1,8 @@ +update + "LOWCODE_FRAME"."LOWCODE_DBFORM" +set IS_DB_SYNC='N' +where TABLE_NAME in ( + 'lc_confined_space_operation', 'lc_drill_task', 'lc_fire_operation', 'lc_high_operation', + 'lc_land_operation', 'lc_lifting_operation', 'lc_outside_license', 'lc_outside_person', + 'lc_temporary_power_operation' + ); \ 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 daaab79..e3fa9f6 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 = "20251125"; + String executeDateStr = "20251204"; Date executeDate = DateUtil.parse(executeDateStr, "yyyyMMdd"); String monthStr = DateUtil.format(executeDate, "yyyyMM"); // 获取项目目录下的SQL目录路径