...
|
...
|
@@ -327,6 +327,7 @@ func (srv StaffAssessServeice) QueryMemberPerformanceIndicator(in *query.MemberP |
|
|
|
|
|
adapterList := make([]*adapter.PerformanceIndicatorAdapter, 0)
|
|
|
categoryMap := map[string]int{} // 内容分类
|
|
|
categoryNameMap := map[string]int{} // 内容名称
|
|
|
for i := range userIds {
|
|
|
userId := userIds[i]
|
|
|
userIdInt, err := strconv.Atoi(userId)
|
...
|
...
|
@@ -365,6 +366,9 @@ func (srv StaffAssessServeice) QueryMemberPerformanceIndicator(in *query.MemberP |
|
|
|
|
|
// 内容名称有值合并到数组
|
|
|
if len(item.Name) > 0 {
|
|
|
onlyKey2 := userId + item.Category + item.Name
|
|
|
if _, ok := categoryNameMap[onlyKey2]; !ok {
|
|
|
categoryNameMap[onlyKey2] = 0
|
|
|
for index := range pia.PIContents {
|
|
|
piContent := &pia.PIContents[index]
|
|
|
if piContent.Category == item.Category {
|
...
|
...
|
@@ -376,6 +380,7 @@ func (srv StaffAssessServeice) QueryMemberPerformanceIndicator(in *query.MemberP |
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
// 旧版(如果未填写自评会出现数据评估项丢失的BUG)
|
...
|
...
|
|