This commit is contained in:
suyl
2021-05-17 14:48:17 +08:00
parent d1d8bbaeb6
commit 2e6aac79ff

View File

@@ -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 ?"