diff --git a/business/jxstore/cms/job.go b/business/jxstore/cms/job.go index db4d27e1f..350d29450 100644 --- a/business/jxstore/cms/job.go +++ b/business/jxstore/cms/job.go @@ -1171,10 +1171,6 @@ func ReloadJobSpan(ctx *jxcontext.Context, jobIDs []int, span int) (err error) { var ( db = dao.GetDB() ) - jobs, err := dao.GetJobsNoPage(db, nil, nil, []int{model.JobStatusDoing}, nil, utils.ZeroTimeValue, utils.ZeroTimeValue, span, false) - if len(jobs) != len(jobIDs) { - return fmt.Errorf("传入的任务IDs有误!") - } for k, v := range jobIDs { job := &model.Job{} job.ID = v diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index c7ae1fd3e..5e2315de1 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -75,7 +75,6 @@ func GetJobs(db *DaoDB, userIDs []string, categoryIDs, statuss, vendorIDs, types if cityCode > 0 { sql += " AND (a.job_city_code = ? OR a.job_city_code = ?)" sqlParams = append(sqlParams, cityCode, model.JobCountrywideCode) - } sqlParams = append(sqlParams, lng, lat, utils.DefaultTimeValue, utils.DefaultTimeValue) if len(userIDs) > 0 {