Browse Source

提交修改

master
超级管理员 3 years ago
parent
commit
5d5ee50d19
  1. 32
      api/version1/postseting/postpc/scheme.go

32
api/version1/postseting/postpc/scheme.go

@ -907,20 +907,20 @@ func (a *ApiMethod) GetCopyShemeInfor(c *gin.Context) {
@shemeInfo 考核项结构体
*/
func (s *shemeSync) postHandleSheme(orgid, postid, dimensId int64, shemeInfo schemeStructure) {
var targetPostList []schemeTargetStructure
var idIsTrue []string
for _, v := range shemeInfo.Child {
idIsTrue = append(idIsTrue, v.Id)
var targetCont schemeTargetStructure
targetCont.Id = v.Id
targetCont.Name = v.Title
targetCont.Content = "" //指标描述
targetCont.StandardScore = getPostDimeTarWeight(orgid, postid, dimensId, v.Id, 1, 1) //标准分
targetCont.Unit = v.Unit //单位
targetCont.IsTrue = 2 //是否允许修改 1:不允许;2:允许
targetCont.State = 1
targetPostList = append(targetPostList, targetCont)
}
// var targetPostList []schemeTargetStructure
// var idIsTrue []string
// for _, v := range shemeInfo.Child {
// idIsTrue = append(idIsTrue, v.Id)
// var targetCont schemeTargetStructure
// targetCont.Id = v.Id
// targetCont.Name = v.Title
// targetCont.Content = "" //指标描述
// targetCont.StandardScore = getPostDimeTarWeight(orgid, postid, dimensId, v.Id, 1, 1) //标准分
// targetCont.Unit = v.Unit //单位
// targetCont.IsTrue = 2 //是否允许修改 1:不允许;2:允许
// targetCont.State = 1
// targetPostList = append(targetPostList, targetCont)
// }
}

Loading…
Cancel
Save