正在显示
1 个修改的文件
包含
7 行增加
和
2 行删除
@@ -80,7 +80,6 @@ func (contractUndertakerFeedbackService *ContractUndertakerFeedbackService) Crea | @@ -80,7 +80,6 @@ func (contractUndertakerFeedbackService *ContractUndertakerFeedbackService) Crea | ||
80 | organization = data | 80 | organization = data |
81 | } | 81 | } |
82 | 82 | ||
83 | - // 获取项目合约信息 | ||
84 | var cooperationContractRepository domain.CooperationContractRepository | 83 | var cooperationContractRepository domain.CooperationContractRepository |
85 | if value, err := factory.CreateCooperationContractRepository(map[string]interface{}{ | 84 | if value, err := factory.CreateCooperationContractRepository(map[string]interface{}{ |
86 | "transactionContext": transactionContext, | 85 | "transactionContext": transactionContext, |
@@ -89,7 +88,13 @@ func (contractUndertakerFeedbackService *ContractUndertakerFeedbackService) Crea | @@ -89,7 +88,13 @@ func (contractUndertakerFeedbackService *ContractUndertakerFeedbackService) Crea | ||
89 | } else { | 88 | } else { |
90 | cooperationContractRepository = value | 89 | cooperationContractRepository = value |
91 | } | 90 | } |
92 | - cooperationContract, err := cooperationContractRepository.FindOne(map[string]interface{}{"cooperationContractNumber": createContractUndertakerFeedbackCommand.CooperationContractNumber}) | 91 | + |
92 | + // 获取项目合约信息 | ||
93 | + cooperationContract, err := cooperationContractRepository.FindOne(map[string]interface{}{ | ||
94 | + "cooperationContractNumber": createContractUndertakerFeedbackCommand.CooperationContractNumber, | ||
95 | + "companyId": createContractUndertakerFeedbackCommand.CompanyId, | ||
96 | + "orgId": createContractUndertakerFeedbackCommand.OrgId, | ||
97 | + }) | ||
93 | if err != nil { | 98 | if err != nil { |
94 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "共创合约不存在") | 99 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "共创合约不存在") |
95 | } | 100 | } |
-
请 注册 或 登录 后发表评论