...
|
...
|
@@ -243,6 +243,9 @@ func (repository *CooperationProjectRepository) Find(queryOptions map[string]int |
|
|
if cooperationProjectName, ok := queryOptions["cooperationProjectName"]; ok && cooperationProjectName != "" {
|
|
|
query.Where("cooperation_project_name like ?", fmt.Sprintf("%%%s%%", cooperationProjectName))
|
|
|
}
|
|
|
if cooperationProjectNumber, ok := queryOptions["cooperationProjectNumber"]; ok && cooperationProjectNumber != "" {
|
|
|
query.Where("cooperation_project_number ilike ?", fmt.Sprintf("%%%s%%", cooperationProjectNumber))
|
|
|
}
|
|
|
if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 {
|
|
|
query.Where("company->>'companyId' = '?'", companyId)
|
|
|
}
|
...
|
...
|
|