From fd77a3703c93cd5a4ad06ae98ebe902ec561419c 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, 23 Dec 2020 11:43:51 +0800 Subject: [PATCH] aa --- business/jxstore/cms/job.go | 4 ---- business/model/dao/dao_job.go | 1 - 2 files changed, 5 deletions(-) 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 {