20260914224947

This commit is contained in:
oneao committed 2026-09-14 22:49:48 +08:00
1 parent 63514476d7
commit d26afb5fec
69 files changed
+158 -1008

No files matched your search

@@ -88,7 +88,7 @@ public final class VerifyBusinessMigration {
}
private static void verifyCoreTables(Connection connection) throws Exception {
for (String table : List.of("b_othercompany", "b_contact", "b_othercompany_bmfl")) {
for (String table : List.of("b_othercompany", "b_contact", "b_othercompany_category")) {
if (!tableExists(connection, table)) {
throw new IllegalStateException("Missing core business table: dbo." + table);
}
@@ -140,7 +140,8 @@ public class FileService {
ps.setString(6, mapfilename);
// 字符串业务键:模块编码 / 分类编码 / 用户账号均按字符串存储
ps.setString(7, moduleId);
ps.setString(8, cateId);
// 分类主键为 bigint 雪花(bf_files_category.b_id),按数字写入
ps.setObject(8, toLongOrNull(cateId));
ps.setString(9, userId);
ps.executeUpdate();
}
@@ -0,0 +1,29 @@
=== 1. 视图 / 过程 / 函数中引用 b_othercompany_bmfl 的对象 ===
name | type_desc
(共 0 行)
=== 2. s_module 模块配置中的表名引用 ===
b_id | b_module_type | b_view_table | b_save_table
(共 0 行)
=== 3. v_b_othercompany 定义(确认是否 join 分类表) ===
definition
create view dbo.v_b_othercompany as
select o.b_id, o.b_ywid, o.b_pycode, o.b_type, o.b_name, o.b_shortname,
o.b_linkman, o.b_phone, o.b_addr, o.b_firstlinkdate,
o.b_htno, o.b_htdate, o.b_htexpiredate, o.b_black, o.b_canuse,
o.b_zl, o.b_tel, o.b_fax, o.b_www, o.b_email,
o.b_bankacount, o.b_invaccount, o.b_cate_id,
o.b_bz1, o.b_bz2, o.b_bz3, o.b_bz4,
o.b_province, o.b_city, o.b_area, o.b_country,
o.b_edicode, o.b_showcolor, o.b_type_id, o.b_from_id,
o.b_type1_id, o.b_type2_id, o.b_type3_id, o.b_type4_id, o.b_type5_id,
o.b_owner_id, ...(截断)
(共 1 行)
=== 4. 表与索引现状 ===
index_name | type_desc
PK__b_otherc__4E29C30D79EECCD3 | CLUSTERED
ix_b_othercompany_bmfl_parent | NONCLUSTERED
ix_b_othercompany_bmfl_path | NONCLUSTERED
(共 3 行)