From be3ade4a69c48f00df28d4818a26a5bde89fc017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 4 Nov 2020 16:38:21 +0800 Subject: [PATCH] getjoborders --- business/jxstore/cms/job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index da679025e..10de043ec 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -328,7 +328,7 @@ func CancelAcceptJob(ctx *jxcontext.Context, jobID int, jobOrderID int64) (err e } }() //如果当前任务状态正常,剩余数量就加1 - if job.Status > 0 { + if job.Status >= 0 { job.SurplusCount += 1 if _, err = dao.UpdateEntity(db, job, "SurplusCount"); err != nil { dao.Rollback(db)