郭庆泰
|
be1c973366
|
docs+chore(projects): 索引 EXPLAIN 分析 + 修正过时注释
- BizOrgMapper: selectSponsorOrgOptions/selectExecutorOrgOptions 注释
写 "走 idx_org_user_type_name", EXPLAIN 实际命中 idx_org_type_status
(优化器小数据下选小索引), 改为实测索引 + Using where 描述
- manager_projects.md §9.3: biz_project_assign 唯一约束状态标 ✅
(SHOW INDEX 实测有 uk_project_unit, doc 老版本误标 ❌)
- manager_projects.md §9.5: 新增索引分析章节, 记录 8 个关键查询
EXPLAIN 命中 + 已加/评估后未加的索引决策
DB 实际改动 (已落库, 无 .sql 文件):
- ADD INDEX idx_assign_exec_user_project (exec_user_id, project_id)
on biz_project_assign — 服务机机构 EXISTS+IN covering 优化
- DROP 临时测试的 idx_org_type_id — 优化器未采纳, 33 行数据量不值
|
2026-08-20 22:39:34 +08:00 |
|
郭庆泰
|
2b69ef1c92
|
refactor(projects): 彻底删除 BizProject.execOrgName (废弃 @Deprecated 字段)
无外部引用 (前端/Mapper 已迁移完成), 直接清理避免 API 表面残留旧字段
|
2026-08-20 22:37:11 +08:00 |
|
郭庆泰
|
b4acd72084
|
docs(projects): 服务机构筛选改多选 el-select 同步
- §2 筛选项表: 服务机构行镜像支持单位 (el-select multiple+remote, execAdminUserIds, EXISTS+IN, executorOptions)
- §9 字段映射表: execOrgName 标 @Deprecated, 加 execAdminUserIds (查询参数)
|
2026-08-20 22:32:47 +08:00 |
|
郭庆泰
|
9d2ed60a32
|
docs: manager_projects.md 字段映射表同步
支持单位筛选 UI 切换为 el-select 多选, 文档同步:
- 控件: el-input → el-select (multiple+remote)
- v-model: q.sponsorOrgName → q.sponsorAdminUserIds (List<Long>)
- 后端 SQL: 旧 LIKE 块 → 新的 IN foreach 块
- 选项来源: 空 → /business/org/sponsorOptions (LIMIT 5)
未做:
- L145 (列表展示列) / L269 (派生字段) / L373 (派生字段列表) 提及 sponsorOrgName 不动 — 展示字段保留
- _self/manager_meeting_new.md (3 处) 提及 sponsorOrgName 不动 — 展示字段保留
|
2026-08-20 22:21:12 +08:00 |
|
郭庆泰
|
7c9e5c373a
|
docs(manager_projects): §6.3 加中文列名列 (DB COMMENT 优先, 加速类型不一致排查)
每行从 5 列扩到 6 列: 实体字段 / 中文列名 (DB COMMENT) / 类型 / 表字段 / 类型 / 一致?
中文名来源 (按优先级):
1. SQL information_schema.COLUMNS.COLUMN_COMMENT (DDL COMMENT, 最权威)
2. 前端 UI label (table header / form label)
3. 实体 @Excel(name) (导出列头, 兜底)
好处: 一眼看出"哪个中文字段对哪个英文 DB 列", §6.3 之前发现的 projectId String vs project_id bigint / startTime String vs start_time datetime 这类 bug 一目了然。
|
2026-08-18 22:17:28 +08:00 |
|
郭庆泰
|
c3b6212478
|
docs(manager_projects): 更新修复记录 + 索引表 + §10 标已修 (P1/P2 5 项)
修复记录章节加 6 条 (2026-08-18):
- #7 batchScoreRows 死代码删除
- #5 4 处 console 调试删除
- #9 日期选择器 value-format 对齐 type
- #12 biz_project 加 idx_sponsor_admin_user_id
- #13 biz_project 加 idx_start_end_time 复合索引
- #14 biz_project_assign 加 uk_project_unit UNIQUE (executor 分配防重复)
§7 索引表更新:
- biz_project 7 个 (新增 idx_sponsor_admin_user_id + idx_start_end_time)
- biz_project_assign 5 个 (新增 uk_project_unit)
§10 待修复列表 5 项标 ~~删除线~~ (5/7/9/12/13/14)
|
2026-08-18 22:12:28 +08:00 |
|
郭庆泰
|
66068c6f57
|
refactor(biz/project): 修实体类型不一致 projectId String→Long + startTime/endTime String→Date
- BizProject.projectId String→Long (9 文件: domain / IBizProjectService / BizProjectServiceImpl /
BizProjectMapper.java+xml / BizProjectController / BizExecutionIntentController /
BizPublicityIntentController / BizPublicController). 删 SnowflakeId.injectIfEmpty
(Long setter 不匹配反射 NoSuchMethodException, biz_project 用 AUTO_INCREMENT 安全)
- BizProject.startTime/endTime String→Date, 加 @JsonFormat yyyy-MM-dd HH:mm:ss (跟 BizMeeting 一致)
- Mapper XML 8 处 <if test='x != null and x != ""'> → <if test='x != null'> (Date 无 isEmpty)
- _self/manager_projects.md: §6.3 + §9.1 标已修, 加修复记录章节
|
2026-08-18 22:03:45 +08:00 |
|