model/followRecord.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
model/followRecord.go
@@ -94,6 +94,12 @@ if key == "client_status" { db = db.Joins("Client").Joins("Client.ClientStatus").Where("Client__ClientStatus.name LIKE ?", "%"+v+"%") } case int: case int64: case float64: if key == "client_id" || key == "contact_id" || key == "sales_leads_id" || key == "sale_chance_id" { db = db.Where(key+" = ?", v) } } } }