|
@@ -124,11 +124,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
@@ -124,11 +124,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
124
|
}
|
124
|
}
|
125
|
|
125
|
|
126
|
// 获取共创项目
|
126
|
// 获取共创项目
|
|
|
127
|
+ if cooperationContract.CooperationProjectNumber != "" {
|
127
|
cooperationProject, err := cooperationProjectRepository.FindOne(map[string]interface{}{
|
128
|
cooperationProject, err := cooperationProjectRepository.FindOne(map[string]interface{}{
|
128
|
"cooperationProjectNumber": cooperationContract.CooperationProjectNumber,
|
129
|
"cooperationProjectNumber": cooperationContract.CooperationProjectNumber,
|
129
|
"companyId": cooperationContract.Company.CompanyId,
|
130
|
"companyId": cooperationContract.Company.CompanyId,
|
130
|
"orgId": cooperationContract.Org.OrgId,
|
131
|
"orgId": cooperationContract.Org.OrgId,
|
131
|
- //"notPause": true,
|
|
|
132
|
})
|
132
|
})
|
133
|
if err != nil {
|
133
|
if err != nil {
|
134
|
var orderNumber string
|
134
|
var orderNumber string
|
|
@@ -144,10 +144,9 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
@@ -144,10 +144,9 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
144
|
DividendsAmount: 0,
|
144
|
DividendsAmount: 0,
|
145
|
OrderOrReturnedOrderNumber: orderNumber,
|
145
|
OrderOrReturnedOrderNumber: orderNumber,
|
146
|
IsSuccessfully: false,
|
146
|
IsSuccessfully: false,
|
147
|
- Reason: "共创项目" + orderGood.CooperationContractNumber + "查询错误",
|
147
|
+ Reason: "共创项目" + cooperationContract.CooperationProjectNumber + "查询错误",
|
148
|
})
|
148
|
})
|
149
|
continue
|
149
|
continue
|
150
|
- //return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
151
|
}
|
150
|
}
|
152
|
if cooperationProject == nil {
|
151
|
if cooperationProject == nil {
|
153
|
var orderNumber string
|
152
|
var orderNumber string
|
|
@@ -163,10 +162,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
@@ -163,10 +162,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
163
|
DividendsAmount: 0,
|
162
|
DividendsAmount: 0,
|
164
|
OrderOrReturnedOrderNumber: orderNumber,
|
163
|
OrderOrReturnedOrderNumber: orderNumber,
|
165
|
IsSuccessfully: false,
|
164
|
IsSuccessfully: false,
|
166
|
- Reason: "共创项目" + orderGood.CooperationContractNumber + "已结束或不存在",
|
165
|
+ Reason: "共创项目" + cooperationContract.CooperationProjectNumber + "已结束或不存在",
|
167
|
})
|
166
|
})
|
168
|
continue
|
167
|
continue
|
169
|
}
|
168
|
}
|
|
|
169
|
+ }
|
170
|
|
170
|
|
171
|
if orderGood.DividendsOrderNumber != "" { // 获取分红订单
|
171
|
if orderGood.DividendsOrderNumber != "" { // 获取分红订单
|
172
|
// 获取分红订单
|
172
|
// 获取分红订单
|