feat(sql): 更新数据库表同步状态
- 添加了针对多个表的IS_DB_SYNC字段更新逻辑 - 修改了测试用例中的执行日期以匹配最新SQL脚本 - 新增了2025年12月11日和12日的SQL执行文件
This commit is contained in:
7
SQL/202512/20251211/z_exec_last.sql
Normal file
7
SQL/202512/20251211/z_exec_last.sql
Normal file
@@ -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'
|
||||||
|
);
|
||||||
6
SQL/202512/20251212/z_exec_last.sql
Normal file
6
SQL/202512/20251212/z_exec_last.sql
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
update
|
||||||
|
"LOWCODE_FRAME"."LOWCODE_DBFORM"
|
||||||
|
set IS_DB_SYNC='N'
|
||||||
|
where TABLE_NAME in (
|
||||||
|
'campus_info', 'lc_outside_person'
|
||||||
|
);
|
||||||
@@ -22,7 +22,7 @@ public class SqlUtilsTest extends BaseMockitoUnitTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testGenerateLastExecuteSQL() throws Exception {
|
public void testGenerateLastExecuteSQL() throws Exception {
|
||||||
String executeDateStr = "20251204";
|
String executeDateStr = "20251212";
|
||||||
Date executeDate = DateUtil.parse(executeDateStr, "yyyyMMdd");
|
Date executeDate = DateUtil.parse(executeDateStr, "yyyyMMdd");
|
||||||
String monthStr = DateUtil.format(executeDate, "yyyyMM");
|
String monthStr = DateUtil.format(executeDate, "yyyyMM");
|
||||||
// 获取项目目录下的SQL目录路径
|
// 获取项目目录下的SQL目录路径
|
||||||
|
|||||||
Reference in New Issue
Block a user