From 2cf7a0157ebe5908f02265ac946934668c3e3a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 30 Oct 2020 09:22:37 +0800 Subject: [PATCH] wx shan --- business/jxstore/cms/job.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index 0df7fe09f..f0f911c42 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -101,10 +101,12 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e if job.Count <= 0 { return errCode, fmt.Errorf("任务数量不能为0!") } + job.SurplusCount = job.Count if job.UserID == "" { return errCode, fmt.Errorf("任务发起人不能为空!") } jobs, err := dao.GetJobsNoPage(db, []string{job.UserID}, nil, nil, DayTimeBegin, DayTimeEnd, false) + fmt.Println("tetetetetet", utils.Format4Output(jobs, false)) if len(jobs) > 0 { members, err := dao.GetUserMember(db, job.UserID, model.MemberTypeNormal) if err != nil {