|
@@ -748,6 +748,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -748,6 +748,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
748
|
var countDividendsEstimate int64
|
748
|
var countDividendsEstimate int64
|
|
749
|
|
749
|
|
|
750
|
for _, orderGood := range orderGoods {
|
750
|
for _, orderGood := range orderGoods {
|
|
|
|
751
|
+ log.Logger.Info("hello 1")
|
|
751
|
dividendsEstimate := &domain.DividendsEstimate{}
|
752
|
dividendsEstimate := &domain.DividendsEstimate{}
|
|
752
|
if orderGood.DividendsOrderNumber != "" { // 查询分红订单
|
753
|
if orderGood.DividendsOrderNumber != "" { // 查询分红订单
|
|
753
|
orderGoodsToConfirm := make([]*domain.OrderGood, 0)
|
754
|
orderGoodsToConfirm := make([]*domain.OrderGood, 0)
|
|
@@ -757,6 +758,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -757,6 +758,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
757
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
758
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, err.Error())
|
|
758
|
} else {
|
759
|
} else {
|
|
759
|
for _, dividendsEstimateDetail := range dividendsEstimateDetails {
|
760
|
for _, dividendsEstimateDetail := range dividendsEstimateDetails {
|
|
|
|
761
|
+ log.Logger.Info("hello 2")
|
|
760
|
if dividendsEstimateDetail.IsSuccessfully {
|
762
|
if dividendsEstimateDetail.IsSuccessfully {
|
|
761
|
// 生成分红预算单号
|
763
|
// 生成分红预算单号
|
|
762
|
dividendsEstimateOrderNumber, err := dividendsEstimateDetail.GenerateSpecificDividendsEstimateNumber(int64(count), countDividendsEstimate)
|
764
|
dividendsEstimateOrderNumber, err := dividendsEstimateDetail.GenerateSpecificDividendsEstimateNumber(int64(count), countDividendsEstimate)
|
|
@@ -806,6 +808,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
@@ -806,6 +808,7 @@ func (dividendsEstimateService *DividendsEstimateService) ConfirmDividendsIncent |
|
806
|
}
|
808
|
}
|
|
807
|
}
|
809
|
}
|
|
808
|
} else if orderGood.DividendsReturnedOrderNumber != "" { // 查询分红退货单
|
810
|
} else if orderGood.DividendsReturnedOrderNumber != "" { // 查询分红退货单
|
|
|
|
811
|
+ log.Logger.Info("hello 3")
|
|
809
|
orderGoodsToConfirm := make([]*domain.OrderGood, 0)
|
812
|
orderGoodsToConfirm := make([]*domain.OrderGood, 0)
|
|
810
|
orderGoodsToConfirm = append(orderGoodsToConfirm, orderGood)
|
813
|
orderGoodsToConfirm = append(orderGoodsToConfirm, orderGood)
|
|
811
|
// 分红退货单产品预算
|
814
|
// 分红退货单产品预算
|