getjoborders
This commit is contained in:
@@ -328,7 +328,7 @@ func CancelAcceptJob(ctx *jxcontext.Context, jobID int, jobOrderID int64) (err e
|
|||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
//如果当前任务状态正常,剩余数量就加1
|
//如果当前任务状态正常,剩余数量就加1
|
||||||
if job.Status > 0 {
|
if job.Status >= 0 {
|
||||||
job.SurplusCount += 1
|
job.SurplusCount += 1
|
||||||
if _, err = dao.UpdateEntity(db, job, "SurplusCount"); err != nil {
|
if _, err = dao.UpdateEntity(db, job, "SurplusCount"); err != nil {
|
||||||
dao.Rollback(db)
|
dao.Rollback(db)
|
||||||
|
|||||||
Reference in New Issue
Block a user