...
|
...
|
@@ -156,9 +156,14 @@ func EditAchievement(editData *protocol.RequestEditAchievement, companyid int64) |
|
|
achievementData.GraspScore = editData.GraspScore
|
|
|
achievementData.UserGraspScore = editData.UserGraspScore
|
|
|
achievementData.GraspScoreRemain = newRamain
|
|
|
if imgData, err := json.Marshal(editData.Images); err == nil {
|
|
|
achievementData.Images = string(imgData)
|
|
|
} else {
|
|
|
achievementData.Images = "[]"
|
|
|
}
|
|
|
cols := []string{
|
|
|
"UpdateAt", "ChanceTypeId", "AuditTemplateId", "SourceContent", "GraspScore",
|
|
|
"UserGraspScore", "GraspScoreRemain",
|
|
|
"UserGraspScore", "GraspScoreRemain", "Images",
|
|
|
}
|
|
|
o := orm.NewOrm()
|
|
|
o.Begin()
|
...
|
...
|
|