fix
wangpengfei
2023-08-11 32c12922f985c43eb1483dfc9ff974865492cde5
fix

add search criteria for followRecord
1个文件已修改
6 ■■■■■ 已修改文件
model/followRecord.go 6 ●●●●● 补丁 | 查看 | 原始文档 | 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)
                }
            }
        }
    }