作者 陈志颖

fix:共创合约部门名称查询

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