|
@@ -1143,6 +1143,9 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
|
@@ -1143,6 +1143,9 @@ func (repository *CooperationContractRepository) Find(queryOptions map[string]in |
1143
|
if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" {
|
1143
|
if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" {
|
1144
|
query.Where("cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName))
|
1144
|
query.Where("cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName))
|
1145
|
}
|
1145
|
}
|
|
|
1146
|
+ if cooperationProjectNumber, ok := queryOptions["cooperationProjectNumber"]; ok && cooperationProjectNumber != "" {
|
|
|
1147
|
+ query.Where("cooperation_project_number = ?", cooperationProjectNumber)
|
|
|
1148
|
+ }
|
1146
|
if departmentName, ok := queryOptions["departmentName"]; ok && departmentName != "" {
|
1149
|
if departmentName, ok := queryOptions["departmentName"]; ok && departmentName != "" {
|
1147
|
query.Where(`(cooperation_contract.department->>'departmentName')::text LIKE ?`, fmt.Sprintf("%%%s%%", departmentName))
|
1150
|
query.Where(`(cooperation_contract.department->>'departmentName')::text LIKE ?`, fmt.Sprintf("%%%s%%", departmentName))
|
1148
|
}
|
1151
|
}
|