fix
wangpengfei
2023-08-16 107a63155dcd0a900f964f9dd31805dd4eaea40e
fix

fix quotation query issue
1个文件已修改
6 ■■■■ 已修改文件
model/quotation.go 6 ●●●● 补丁 | 查看 | 原始文档 | 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: