...
|
...
|
@@ -185,6 +185,9 @@ func (repository *RoleRepository) Find(queryOptions map[string]interface{}) (int |
|
|
if orgName, ok := queryOptions["orgName"]; ok && len(orgName.(string)) > 0 {
|
|
|
query.Where(fmt.Sprintf("ext->>'orgName' like '%%%v%%'", orgName))
|
|
|
}
|
|
|
if matchRoleName, ok := queryOptions["matchRoleName"]; ok && len(matchRoleName.(string)) > 0 {
|
|
|
query.Where(fmt.Sprintf("role_name like '%%%v%%'", matchRoleName))
|
|
|
}
|
|
|
// 包含删除的
|
|
|
if v, ok := queryOptions["includeDeleted"]; ok && !(v.(bool)) {
|
|
|
query.Where("deleted_at is null")
|
...
|
...
|
|