This commit is contained in:
苏尹岚
2020-12-25 16:43:30 +08:00
parent da778f7b85
commit 83bcc38735

View File

@@ -230,8 +230,8 @@ func CancelPublishJob(ctx *jxcontext.Context, jobID int) (err error) {
}
//3、任务状态被取消
job.Status = model.JobStatusFailed
job.DeletedAt = time.Now()
if _, err = dao.UpdateEntity(db, job, "Status", "DeletedAt"); err != nil {
// job.DeletedAt = time.Now()
if _, err = dao.UpdateEntity(db, job, "Status"); err != nil {
dao.Rollback(db)
return
}