正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
@@ -154,7 +154,10 @@ func (repository *ContractUndertakerFeedbackRepository) Find(queryOptions map[st | @@ -154,7 +154,10 @@ func (repository *ContractUndertakerFeedbackRepository) Find(queryOptions map[st | ||
154 | contractUndertakerFeedbacks := make([]*domain.ContractUndertakerFeedback, 0) | 154 | contractUndertakerFeedbacks := make([]*domain.ContractUndertakerFeedback, 0) |
155 | query := sqlbuilder.BuildQuery(tx.Model(&contractUndertakerFeedbackModels), queryOptions) | 155 | query := sqlbuilder.BuildQuery(tx.Model(&contractUndertakerFeedbackModels), queryOptions) |
156 | if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" { | 156 | if cooperationContractName, ok := queryOptions["cooperationContractName"]; ok && cooperationContractName != "" { |
157 | - query.Where("cooperation_contract_number like ?", fmt.Sprintf("%%%s%%", cooperationContractName)) | 157 | + query.Where("cooperation_contract_name like ?", fmt.Sprintf("%%%s%%", cooperationContractName)) |
158 | + } | ||
159 | + if cooperationContractNumber, ok := queryOptions["cooperationContractNumber"]; ok && cooperationContractNumber != "" { | ||
160 | + query.Where("cooperation_contract_number = ?", cooperationContractNumber) | ||
158 | } | 161 | } |
159 | if undertakerName, ok := queryOptions["undertakerName"]; ok && undertakerName != "" { | 162 | if undertakerName, ok := queryOptions["undertakerName"]; ok && undertakerName != "" { |
160 | query.Where("contract_undertaker->>'userName' like ?", fmt.Sprintf("%%%s%%", undertakerName)) | 163 | query.Where("contract_undertaker->>'userName' like ?", fmt.Sprintf("%%%s%%", undertakerName)) |
-
请 注册 或 登录 后发表评论