Files
supervision-test-repo/sql-changelog/ddl/20260806_删除遗留dj_inspect_improve表.sql
wsm 91455194ce fix(inspectimprove): 删除遗留孤立实体并修复阶段字段默认值
- 删除 dj_inspect_improve 遗留实体(控制器/实体/mapper/service/完成监听器及其测试),
  清理 InspectImproveFlow 与两个监听器的未使用注入,删除无数据表并记录 DDL
- DqInspectTaskServiceImpl.saveMain 兜底 completedStage=0,修复 completed_stage 为 NULL 导致阶段递增失效
- 同步修正相关测试的构造函数参数
2026-08-06 18:41:14 +08:00

9 lines
628 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 删除遗留孤立实体 dj_inspect_improve 表
-- 背景:DjInspectImprove 实体/控制器/服务为遗留代码——无前端页面、提升/销号流程均不引用
-- InspectImproveFlow 注入的 djInspectImproveService 从未被调用)、代码库外部无引用。
-- 且表结构(缺 pid/has_child/del_flag/bpm_status 列)与树表设计的实体不匹配。
-- 正确业务模型为:问题表 dq_inspect_problem + 具体措施表 dq_inspect_task。
-- 执行前请确认目标环境该表无需要保留的数据(本环境已确认 0 行)。
DROP TABLE IF EXISTS dj_inspect_improve;