|
@@ -50,6 +50,7 @@ func (repository *UsersRepository) FindOne(queryOptions map[string]interface{}) |
|
@@ -50,6 +50,7 @@ func (repository *UsersRepository) FindOne(queryOptions map[string]interface{}) |
50
|
UsersModel := new(models.Users)
|
50
|
UsersModel := new(models.Users)
|
51
|
query := NewQuery(tx.Model(UsersModel), queryOptions)
|
51
|
query := NewQuery(tx.Model(UsersModel), queryOptions)
|
52
|
query.SetWhere("id = ?", "id")
|
52
|
query.SetWhere("id = ?", "id")
|
|
|
53
|
+ query.SetWhere("open_id = ?", "openId")
|
53
|
query.SetWhere("status = ?", "status")
|
54
|
query.SetWhere("status = ?", "status")
|
54
|
query.SetWhere("phone = ?", "phone")
|
55
|
query.SetWhere("phone = ?", "phone")
|
55
|
query.SetWhere("company_id = ?", "companyId")
|
56
|
query.SetWhere("company_id = ?", "companyId")
|