...
|
...
|
@@ -250,6 +250,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 departmentName, ok := queryOptions["departmentName"]; ok && departmentName != "" {
|
|
|
query.Where("department->>'departmentName' like ? ", fmt.Sprintf("%%%s%%", departmentName))
|
|
|
}
|
|
|
if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 {
|
|
|
query.Where("company->>'companyId' = '?'", companyId)
|
|
|
}
|
...
|
...
|
|