models/worker.go
@@ -115,8 +115,7 @@ } if slf.Keyword != "" { db.Joins("WorkerSkill") db = db.Where("worker.name LIKE ? or worker.phone_num LIKE ? or WorkerSkill.name like ?", "%"+slf.Keyword+"%", "%"+slf.Keyword+"%", "%"+slf.Keyword+"%") db = db.Where("worker.name LIKE ? or worker.phone_num LIKE ? ", "%"+slf.Keyword+"%", "%"+slf.Keyword+"%") } if slf.Status > 0 {