This commit is contained in:
苏尹岚
2020-12-17 17:05:28 +08:00
parent 2840dec1b7
commit 2d1aa60e1c

View File

@@ -102,8 +102,11 @@ func GetJobs(db *DaoDB, userIDs []string, categoryIDs, statuss, vendorIDs, types
sqlParams = append(sqlParams, toTime)
}
if span != 0 {
sql += ` AND a.job_span & ? <> 0`
sqlParams = append(sqlParams, span)
if span == model.JobSpanTop {
sql += ` AND a.job_span_top = 1`
} else {
sql += ` AND a.job_span_recmd = 1`
}
}
if keyword != "" {
sql += ` AND (a.title LIKE ? OR a.content LIKE ? OR a.address LIKE ? OR b.name LIKE ?)`