Files
ccdi/docs/plans/backend/2026-04-17-fix-ccdi-asset-info-comment-encoding-backend-implementation.md
2026-04-17 11:04:52 +08:00

24 lines
884 B
Markdown
Raw 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.
# 修复员工资产信息表注释乱码后端实施计划
## 变更目标
- 修复 `ccdi_asset_info` 表中 `family_id``person_id` 列注释乱码问题
- 保持表结构、字段类型和业务数据不变,仅修正元数据注释
## 变更范围
- `sql/migration/2026-04-17-fix-ccdi-asset-info-comment-encoding.sql`
## 实施步骤
1. 查询 `information_schema.COLUMNS`,确认 `ccdi_asset_info` 列注释实际存在乱码
2. 新增增量 SQL使用 `ALTER TABLE ... MODIFY COLUMN ... COMMENT` 修复 `family_id``person_id` 注释
3. 通过 `bin/mysql_utf8_exec.sh``utf8mb4` 会话执行脚本
4. 再次查询 `information_schema.COLUMNS` 验证注释已恢复为中文
## 验证要点
- `family_id` 注释显示为“归属员工证件号”
- `person_id` 注释显示为“资产实际持有人证件号”
- 字段类型仍为 `VARCHAR(100) NOT NULL`