From 2e6aac79fffca76da53731180aff86d052e5199e Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Mon, 17 May 2021 14:48:17 +0800 Subject: [PATCH] aa --- business/model/dao/dao_job.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/model/dao/dao_job.go b/business/model/dao/dao_job.go index e4cca913d..5dff490b7 100644 --- a/business/model/dao/dao_job.go +++ b/business/model/dao/dao_job.go @@ -131,7 +131,7 @@ func GetJobs(db *DaoDB, userIDs []string, categoryIDs, statuss, vendorIDs, types } else if sortType == sortTypeTime { sql += ` ORDER BY job_span_top DESC, top_seq, a.created_at` } else if sortType == -sortTypeTime { - sql += ` ORDER BY job_span_top DESC, top_seq, a.created_at DESC` + sql += ` ORDER BY status DESC, job_span_top DESC, top_seq, a.created_at DESC` } } sql += " LIMIT ? OFFSET ?"