...
|
...
|
@@ -29,8 +29,7 @@ func (dividendsEstimateService *DividendsEstimateService) EstimateDividendsIncen |
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
|
|
|
estimateDividendsIncentivesCommand.Operator)
|
|
|
_, err := creationCooperationGateway.DividendsEstimateDividendsIncentives(allied_creation_cooperation.ReqDividendsEstimateDividendsIncentives{
|
|
|
CooperationContractNumber: estimateDividendsIncentivesCommand.CooperationContractNumber,
|
|
|
OrderOrReturnedOrderNum: estimateDividendsIncentivesCommand.OrderOrReturnedOrderNum,
|
|
|
OrderGoodIds: estimateDividendsIncentivesCommand.OrderGoodIds,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
...
|
...
|
@@ -42,15 +41,15 @@ func (dividendsEstimateService *DividendsEstimateService) EstimateDividendsIncen |
|
|
func (dividendsEstimateService *DividendsEstimateService) EstimateMoneyIncentives(estimateMoneyIncentivesCommand *command.EstimateMoneyIncentivesCommand) (interface{}, error) {
|
|
|
creationCooperationGateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
|
|
|
estimateMoneyIncentivesCommand.Operator)
|
|
|
result, err := creationCooperationGateway.DividendsEstimatesEstimateMoneys(allied_creation_cooperation.ReqDividendsEstimateMoneyIncentives{
|
|
|
CooperationContractNumber: estimateMoneyIncentivesCommand.CooperationContractNumber,
|
|
|
DividendsIncentivesStage: estimateMoneyIncentivesCommand.DividendsIncentivesStage,
|
|
|
UndertakerUid: estimateMoneyIncentivesCommand.UndertakerUid,
|
|
|
_, err := creationCooperationGateway.DividendsEstimatesEstimateMoneys(allied_creation_cooperation.ReqDividendsEstimateMoneyIncentives{
|
|
|
CooperationContractId: estimateMoneyIncentivesCommand.CooperationContractId,
|
|
|
DividendsIncentivesStage: estimateMoneyIncentivesCommand.DividendsIncentivesStage,
|
|
|
UndertakerUids: estimateMoneyIncentivesCommand.UndertakerUids,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
|
|
|
}
|
|
|
return result, nil
|
|
|
return estimateMoneyIncentivesCommand, nil
|
|
|
}
|
|
|
|
|
|
// 查询分红预算单列表
|
...
|
...
|
|