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