model/quotation.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
model/quotation.go
@@ -68,7 +68,11 @@ } if key == "contact_name" { db = db.Joins("Contact").Where("LIKE", "%"+v+"%") db = db.Joins("Contact").Where("Contact.name LIKE ?", "%"+v+"%") } if key == "member_name" { db = db.Joins("Member").Where("Member.username LIKE ?", "%"+v+"%") } case int: