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

+16
View File
@@ -0,0 +1,16 @@
package utils
import (
"regexp"
"strings"
)
// e10DeptTokenRe 匹配企微同步残留的「e10-<企微部门ID>」部门名片段:
// Casdoor 上游未映射企微部门名时,部门以该形态落库 org_depts.name /
// users.dept_name,展示层(Excel 导出、推送文案等)统一剥离(2026-11 需求)。
var e10DeptTokenRe = regexp.MustCompile(`(?i)e10-\d+`)
// CleanDeptName 剥离部门名中残留的「e10-数字」字样并去首尾空白。
func CleanDeptName(name string) string {
return strings.TrimSpace(e10DeptTokenRe.ReplaceAllString(name, ""))
}