From cfd6b87c9b391958b55626a14c04525fda374359 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Thu, 1 Sep 2022 11:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=B2=97=E4=BD=8D=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/version1/postseting/postpc/targetpost.go | 4 ++++ api/version1/postseting/postpc/type.go | 1 + 2 files changed, 5 insertions(+) diff --git a/api/version1/postseting/postpc/targetpost.go b/api/version1/postseting/postpc/targetpost.go index f4ced5a..77968d3 100644 --- a/api/version1/postseting/postpc/targetpost.go +++ b/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) } diff --git a/api/version1/postseting/postpc/type.go b/api/version1/postseting/postpc/type.go index 7b1be07..b718f0f 100644 --- a/api/version1/postseting/postpc/type.go +++ b/api/version1/postseting/postpc/type.go @@ -150,6 +150,7 @@ type getPostOneTarget struct { // 岗位单一指标关联岗位及提报人 type postPeople struct { publicmethod.PublicId + publicmethod.PublicName Operator []string `json:"operator"` //考核执行人 }