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 {