正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -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)) |
-
请 注册 或 登录 后发表评论