|
@@ -210,6 +210,7 @@ func (repository *UserRepository) Find(queryOptions map[string]interface{}) (int |
|
@@ -210,6 +210,7 @@ func (repository *UserRepository) Find(queryOptions map[string]interface{}) (int |
210
|
if v, ok := queryOptions["inCompanyIds"]; ok && len(v.([]int64)) > 0 {
|
210
|
if v, ok := queryOptions["inCompanyIds"]; ok && len(v.([]int64)) > 0 {
|
211
|
query.Where(`company_id in (?)`, pg.In(v))
|
211
|
query.Where(`company_id in (?)`, pg.In(v))
|
212
|
}
|
212
|
}
|
|
|
213
|
+ query.SetWhereByQueryOption("user_code = ?", "userCode")
|
213
|
query.SetWhereByQueryOption("user_base_id=?", "userBaseId")
|
214
|
query.SetWhereByQueryOption("user_base_id=?", "userBaseId")
|
214
|
query.SetWhereByQueryOption("(user_type & ?)>0", "userType")
|
215
|
query.SetWhereByQueryOption("(user_type & ?)>0", "userType")
|
215
|
query.SetWhereByQueryOption("enable_status=?", "enableStatus")
|
216
|
query.SetWhereByQueryOption("enable_status=?", "enableStatus")
|