fix(bug):1.帮我检查一下平台中有多少处显示部门地方这种“e10-、、、、”字样拿掉不要显示
deploy-hxtesting / build-and-deploy (push) Successful in 1m28s

2.月培训计划发布时授课时间默认空着点击【发布】时提示先维护授课时间,(不要默认年培训计划)
3.授课地点默认“年度计划”所设置的授课地点,如果年培训计划没有维护发布时也要必填
4.点击【发布】时要校验参加人员不能为空!默认为所属部门下的人员~
认真阅读相关代码~
This commit is contained in:
runny committed 2026-11-30 16:13:42 +08:00
1 parent 6cdcc4f221
commit 858c352991
16 files changed
+421 -89

No files matched your search

@@ -19,6 +19,7 @@ import (
"academy/internal/errors"
"academy/internal/logger"
"academy/internal/types"
"academy/internal/utils"
)
// 手动推送默认文案(前端弹窗预填同款,后端对空值兜底)。
@@ -245,10 +246,14 @@ func (s *trainingService) deptNames(ctx context.Context, tenantID uint64, ids []
}
out := make([]string, 0, len(ids))
for _, id := range ids {
if name := byID[id]; name != "" {
out = append(out, name)
} else {
out = append(out, id)
name := byID[id]
if name == "" {
out = append(out, id) // 组织中心不可用或部门已删,回落 id 原文,不阻断列表
continue
}
// 2026-11 需求:推送文案剥离企微同步残留的「e10-<ID>」部门名字样
if cleaned := utils.CleanDeptName(name); cleaned != "" {
out = append(out, cleaned)
}
}
return out