|
|
|
@ -77,10 +77,14 @@ func (a *ApiMethod) GetQuantitativeTasks(c *gin.Context) { |
|
|
|
publicmethod.Result(1, qualEvaList, c, "您没有要参加的考核项目!") |
|
|
|
return |
|
|
|
} |
|
|
|
var idInAry []int64 |
|
|
|
var sendListCont []TargetContOutCont |
|
|
|
for _, vsss := range qualEvaList { |
|
|
|
var v modelskpi.QualitativeEvaluation |
|
|
|
v.GetCont(map[string]interface{}{"`qe_accept_evaluation`": vsss.AcceptEvaluation, "`qe_target`": vsss.Target, "`qe_state`": 1}) |
|
|
|
|
|
|
|
if !publicmethod.IsInTrue[int64](v.Id, idInAry) { |
|
|
|
idInAry = append(idInAry, v.Id) |
|
|
|
var sendCont TargetContOutCont |
|
|
|
sendCont.Id = strconv.FormatInt(v.Id, 10) |
|
|
|
sendCont.Type = v.Type |
|
|
|
@ -270,6 +274,7 @@ func (a *ApiMethod) GetQuantitativeTasks(c *gin.Context) { |
|
|
|
// }
|
|
|
|
sendListCont = append(sendListCont, sendCont) |
|
|
|
} |
|
|
|
} |
|
|
|
publicmethod.Result(0, sendListCont, c) |
|
|
|
} |
|
|
|
|
|
|
|
|