Browse Source

增加岗位名称

master
超级管理员 3 years ago
parent
commit
cfd6b87c9b
  1. 4
      api/version1/postseting/postpc/targetpost.go
  2. 1
      api/version1/postseting/postpc/type.go

4
api/version1/postseting/postpc/targetpost.go

@ -2,6 +2,7 @@ package postpc
import (
"fmt"
"key_performance_indicators/models/modelshr"
"key_performance_indicators/models/modelskpi"
"key_performance_indicators/overall"
"key_performance_indicators/overall/publicmethod"
@ -70,6 +71,9 @@ func getTargetAboutPost(departmentId, dimensionId, targetId int64, level int) (p
for i := 0; i < len(postId); i++ {
var postmanCont postPeople
postmanCont.Id = strconv.FormatInt(postId[i], 10)
var postCont modelshr.Position
postCont.GetCont(map[string]interface{}{"`id`": postId[i]}, "`name`")
postmanCont.Name = postCont.Name
_, postmanCont.Operator, _ = getTargetAboutPostMan(departmentId, postId[i], dimensionId, targetId, level)
postPeopleList = append(postPeopleList, postmanCont)
}

1
api/version1/postseting/postpc/type.go

@ -150,6 +150,7 @@ type getPostOneTarget struct {
// 岗位单一指标关联岗位及提报人
type postPeople struct {
publicmethod.PublicId
publicmethod.PublicName
Operator []string `json:"operator"` //考核执行人
}

Loading…
Cancel
Save