fix(correctness): 并发/事务/实体/时区/状态一致性修复
由 OCR(open-codereview.ai,deepseek-v4-flash)审查驱动修复: - wallets 原子扣款防 double-spend;refund 条件更新幂等;findTransactions 分页 - financial/imports/occupancies/attendance 事务与 advisory lock;重复生成/提交幂等 - 矛盾校验器、日期区间、实体双映射/DECIMAL/nullable、时区统一(china-time) - rbac-seed 防重激活、exam 权限恢复、状态一致性、路由顺序、N+1/IN 分块等性能项 Reviewed-by: OCR (open-codereview.ai)
This commit is contained in:
@@ -165,7 +165,8 @@ import { IntegrationConfigModule } from './integration/config/config.module';
|
||||
database: config.get<string>('DB_DATABASE', 'dorm_billing'),
|
||||
entities: allEntities,
|
||||
migrations: allMigrations,
|
||||
synchronize: config.get('DB_SYNCHRONIZE', 'true') !== 'false',
|
||||
// 生产安全:仅当显式 DB_SYNCHRONIZE=true 时才自动同步表结构
|
||||
synchronize: config.get('DB_SYNCHRONIZE') === 'true',
|
||||
charset: 'utf8mb4',
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user