Browse Source

修改数据类型

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

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

@ -42,14 +42,15 @@ func (a *ApiMethod) GetPostTarget(c *gin.Context) {
sendData.ReleDepart = postTargetCont.ReleDepart //相关部门"`
sendData.DepartmentsPost = postTargetCont.DepartmentsPost //相关岗位"`
sendData.Dimension = postTargetCont.Dimension //维度"`
sendData.Key = postTargetCont.Key //UUID"`
sendData.Report = postTargetCont.Report //上报人"`
sendData.Unit = postTargetCont.Unit //单位"`
sendData.Cycle = postTargetCont.Cycle //1:班;2:天;3:周;4:月;5:季度;6:年"`
sendData.Cycleattr = postTargetCont.Cycleattr //辅助计数"`
sendData.ScoringMethod = postTargetCont.ScoringMethod //计分方式(1:自动;2:手动)"`
sendData.VisibleRange = postTargetCont.VisibleRange //可见范围"`
sendData.VisibleGroup = postTargetCont.VisibleGroup //可见范围(集团)"`
sendData.DimensionStr = strconv.FormatInt(postTargetCont.Dimension, 10)
sendData.Key = postTargetCont.Key //UUID"`
sendData.Report = postTargetCont.Report //上报人"`
sendData.Unit = postTargetCont.Unit //单位"`
sendData.Cycle = postTargetCont.Cycle //1:班;2:天;3:周;4:月;5:季度;6:年"`
sendData.Cycleattr = postTargetCont.Cycleattr //辅助计数"`
sendData.ScoringMethod = postTargetCont.ScoringMethod //计分方式(1:自动;2:手动)"`
sendData.VisibleRange = postTargetCont.VisibleRange //可见范围"`
sendData.VisibleGroup = postTargetCont.VisibleGroup //可见范围(集团)"`
_, sendData.RelevantPostsMan, _ = getTargetAboutPost(postTargetCont.ReleDepart, postTargetCont.Dimension, postTargetCont.Id, 2)
publicmethod.Result(0, sendData, c)
}

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

@ -144,7 +144,7 @@ type outShemeVersionCont struct {
type getPostOneTarget struct {
modelskpi.PostTarget
RelevantPostsMan []postPeople `json:"relevantpostsman"` //相关岗位
DimensionStr string `json:"dimensionstr" `
}
// 岗位单一指标关联岗位及提报人

Loading…
Cancel
Save