From fdd6b879fb0a49eb0364165d55cb6dde14880be4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 5 Nov 2020 15:18:30 +0800 Subject: [PATCH] auditmilit at --- business/model/dao/dao_job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index 46aaeec0f..b206cbbd8 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -76,9 +76,9 @@ func GetJobs(db *DaoDB, userIDs []string, categoryIDs, statuss, vendorIDs, types } sql += ` FROM job a JOIN job_category b ON b.id = a.job_category_id AND b.deleted_at = ? - WHERE 1 = 1 + WHERE a.deleted_at = ? ` - sqlParams = append(sqlParams, utils.DefaultTimeValue) + sqlParams = append(sqlParams, utils.DefaultTimeValue, utils.DefaultTimeValue) if len(userIDs) > 0 { sql += ` AND a.user_id IN (` + GenQuestionMarks(len(userIDs)) + `)` sqlParams = append(sqlParams, userIDs)