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