作者 陈志颖

fix:修复承接人反馈仓储

@@ -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))