...
|
...
|
@@ -254,6 +254,9 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
|
if keyword, ok := queryOptions["keyword"]; ok && keyword != "" {
|
|
|
query.Where("cooperation_project_description like ?", fmt.Sprintf("%%%s%%", keyword))
|
|
|
}
|
|
|
if cooperationProjectIds, ok := queryOptions["cooperationProjectIds"]; ok && len(cooperationProjectIds.([]int64)) > 0 {
|
|
|
query.Where("cooperation_project_id IN (?)", pg.In(cooperationProjectIds))
|
|
|
}
|
|
|
if departmentName, ok := queryOptions["departmentName"]; ok && departmentName != "" {
|
|
|
query.Where("department->>'departmentName' like ? ", fmt.Sprintf("%%%s%%", departmentName))
|
|
|
}
|
...
|
...
|
|