20260911173133
This commit is contained in:
1 parent
3838ed74b1
commit
f3ad727f1c
60 files changed
+4971
-6621
No files matched your search
@@ -4,9 +4,12 @@ import java.util.*;
|
||||
/**
|
||||
* 其他数据子系统全量迁移工具
|
||||
*
|
||||
* 从旧库 G3HY2025 迁移 b_other_bmfl 分类树 + 各基础字典表数据到新库 fms。
|
||||
* 从旧库 G3HY2025 迁移 b_other_bmfl 分类树 + 各基础字典表数据到新库 FMS。
|
||||
* 替代 FieldNameSync.java 的单表单字段同步,一次性完成整个"其他数据"子系统的迁移。
|
||||
*
|
||||
* 注意:本工具面向 V1 表结构(s_module_field / s_module_field_list / s_module_field_edit),
|
||||
* 与《FMS新系统核心表结构设计V2》的 s_field / s_module_schema 不兼容,仅作历史参考。
|
||||
*
|
||||
* 4 个阶段:
|
||||
* 1. 发现:读取旧 b_other_bmfl,列出分类和关联表
|
||||
* 2. 树迁移:创建 category/module 节点树
|
||||
@@ -23,7 +26,7 @@ import java.util.*;
|
||||
*/
|
||||
public class OtherDataMigration {
|
||||
|
||||
static final String URL = "jdbc:sqlserver://118.89.70.199:1433;databaseName=fms;encrypt=true;trustServerCertificate=true";
|
||||
static final String URL = "jdbc:sqlserver://118.89.70.199:1433;databaseName=FMS;encrypt=true;trustServerCertificate=true";
|
||||
static final String USER = "sa";
|
||||
static final String PASSWORD = "zhang520..";
|
||||
|
||||
@@ -121,7 +124,7 @@ public class OtherDataMigration {
|
||||
void printHeader() {
|
||||
System.out.println("=".repeat(60));
|
||||
System.out.println(" 其他数据子系统全量迁移工具");
|
||||
System.out.println(" G3HY2025 → fms");
|
||||
System.out.println(" G3HY2025 → FMS");
|
||||
System.out.println("=".repeat(60));
|
||||
System.out.println(" dry-run: " + dryRun);
|
||||
System.out.println(" clean-tree: " + cleanTree);
|
||||
|
||||
Reference in new issue
Block a user