正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -139,10 +139,10 @@ func (dao *CooperationContractDao) SearchCooperationContractByUndertaker(queryOp | @@ -139,10 +139,10 @@ func (dao *CooperationContractDao) SearchCooperationContractByUndertaker(queryOp | ||
139 | query.ColumnExpr("A.status AS contract_status") | 139 | query.ColumnExpr("A.status AS contract_status") |
140 | query.ColumnExpr("B.cooperation_mode_name") | 140 | query.ColumnExpr("B.cooperation_mode_name") |
141 | if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" { | 141 | if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" { |
142 | - query = query.Where("A.cooperation_contract_name ilike ?", fmt.Sprintf("%%%s%%", cooperationContractName)) | 142 | + query = query.Where("A.cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName)) |
143 | } | 143 | } |
144 | if sponsorName, ok := queryOptions["sponsorName"]; ok && sponsorName != "" { | 144 | if sponsorName, ok := queryOptions["sponsorName"]; ok && sponsorName != "" { |
145 | - query = query.Where(`A.cooperation_contract_sponsor->>'userName')::text LIKE ?`, fmt.Sprintf("%%%s%%", sponsorName)) | 145 | + query = query.Where(`A.cooperation_contract_sponsor->>'userName'::text LIKE ?`, fmt.Sprintf("%%%s%%", sponsorName)) |
146 | } | 146 | } |
147 | if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 { | 147 | if companyId, ok := queryOptions["companyId"]; ok && companyId.(int64) != 0 { |
148 | query.Where("cooperation_contract_undertaker.company->>'companyId' = '?'", companyId) | 148 | query.Where("cooperation_contract_undertaker.company->>'companyId' = '?'", companyId) |
-
请 注册 或 登录 后发表评论