wx shan
This commit is contained in:
@@ -101,10 +101,12 @@ func PublishJob(ctx *jxcontext.Context, jobExt *model.JobExt) (errCode string, e
|
|||||||
if job.Count <= 0 {
|
if job.Count <= 0 {
|
||||||
return errCode, fmt.Errorf("任务数量不能为0!")
|
return errCode, fmt.Errorf("任务数量不能为0!")
|
||||||
}
|
}
|
||||||
|
job.SurplusCount = job.Count
|
||||||
if job.UserID == "" {
|
if job.UserID == "" {
|
||||||
return errCode, fmt.Errorf("任务发起人不能为空!")
|
return errCode, fmt.Errorf("任务发起人不能为空!")
|
||||||
}
|
}
|
||||||
jobs, err := dao.GetJobsNoPage(db, []string{job.UserID}, nil, nil, DayTimeBegin, DayTimeEnd, false)
|
jobs, err := dao.GetJobsNoPage(db, []string{job.UserID}, nil, nil, DayTimeBegin, DayTimeEnd, false)
|
||||||
|
fmt.Println("tetetetetet", utils.Format4Output(jobs, false))
|
||||||
if len(jobs) > 0 {
|
if len(jobs) > 0 {
|
||||||
members, err := dao.GetUserMember(db, job.UserID, model.MemberTypeNormal)
|
members, err := dao.GetUserMember(db, job.UserID, model.MemberTypeNormal)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user