...
|
...
|
@@ -124,11 +124,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
|
}
|
|
|
|
|
|
// 获取共创项目
|
|
|
if cooperationContract.CooperationProjectNumber != "" {
|
|
|
cooperationProject, err := cooperationProjectRepository.FindOne(map[string]interface{}{
|
|
|
"cooperationProjectNumber": cooperationContract.CooperationProjectNumber,
|
|
|
"companyId": cooperationContract.Company.CompanyId,
|
|
|
"orgId": cooperationContract.Org.OrgId,
|
|
|
//"notPause": true,
|
|
|
})
|
|
|
if err != nil {
|
|
|
var orderNumber string
|
...
|
...
|
@@ -144,10 +144,9 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
|
DividendsAmount: 0,
|
|
|
OrderOrReturnedOrderNumber: orderNumber,
|
|
|
IsSuccessfully: false,
|
|
|
Reason: "共创项目" + orderGood.CooperationContractNumber + "查询错误",
|
|
|
Reason: "共创项目" + cooperationContract.CooperationProjectNumber + "查询错误",
|
|
|
})
|
|
|
continue
|
|
|
//return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
|
}
|
|
|
if cooperationProject == nil {
|
|
|
var orderNumber string
|
...
|
...
|
@@ -163,10 +162,11 @@ func (domainService *ConfirmDividendsIncentivesEstimateService) Confirm(orderGoo |
|
|
DividendsAmount: 0,
|
|
|
OrderOrReturnedOrderNumber: orderNumber,
|
|
|
IsSuccessfully: false,
|
|
|
Reason: "共创项目" + orderGood.CooperationContractNumber + "已结束或不存在",
|
|
|
Reason: "共创项目" + cooperationContract.CooperationProjectNumber + "已结束或不存在",
|
|
|
})
|
|
|
continue
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if orderGood.DividendsOrderNumber != "" { // 获取分红订单
|
|
|
// 获取分红订单
|
...
|
...
|
|