feat(ssa): Complete T-test end-to-end testing with 9 bug fixes - Phase 1 core 85% complete. R service: missing value auto-filter. Backend: error handling, variable matching, dynamic filename. Frontend: module activation, session isolation, error propagation. Full flow verified.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -39,6 +39,22 @@ async function main() {
|
||||
});
|
||||
console.log(` ✅ 内部租户创建成功: ${internalTenant.name}`);
|
||||
|
||||
// 为内部租户开放所有模块(超级管理员完整权限)
|
||||
const internalModules = ['AIA', 'ASL', 'PKB', 'DC', 'SSA', 'ST', 'RVW', 'IIT'];
|
||||
for (const moduleCode of internalModules) {
|
||||
await prisma.tenant_modules.upsert({
|
||||
where: { tenant_id_module_code: { tenant_id: internalTenant.id, module_code: moduleCode } },
|
||||
update: {},
|
||||
create: {
|
||||
id: uuidv4(),
|
||||
tenant_id: internalTenant.id,
|
||||
module_code: moduleCode,
|
||||
is_enabled: true,
|
||||
},
|
||||
});
|
||||
}
|
||||
console.log(` ✅ 内部租户模块订阅: ${internalModules.join(', ')}`);
|
||||
|
||||
// ============================================
|
||||
// 1.5 创建公共租户(个人用户池)
|
||||
// ============================================
|
||||
|
||||
Reference in New Issue
Block a user