...
|
...
|
@@ -1151,7 +1151,7 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
|
query.Where("cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName))
|
|
|
}
|
|
|
if departmentName, ok := queryOptions["departmentName"]; ok && departmentName != "" {
|
|
|
query.Where(`(cooperation_contract.department->>'departmentName')::test LIKE ?`, fmt.Sprintf("%%%s%%", departmentName))
|
|
|
query.Where(`(cooperation_contract.department->>'departmentName')::text LIKE ?`, fmt.Sprintf("%%%s%%", departmentName))
|
|
|
}
|
|
|
if sponsorName, ok := queryOptions["sponsorName"]; ok && sponsorName != "" {
|
|
|
query.Where(`(cooperation_contract.cooperation_contract_sponsor->>'userName')::text LIKE ?`, fmt.Sprintf("%%%s%%", sponsorName))
|
...
|
...
|
|