...
|
...
|
@@ -160,7 +160,6 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst |
|
|
}); err4 != nil {
|
|
|
return nil, err4
|
|
|
} else {
|
|
|
|
|
|
if countDividendsOrder > 0 {
|
|
|
for i, order := range orders {
|
|
|
// 取消分红的订单产品
|
...
|
...
|
@@ -230,7 +229,7 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst |
|
|
if countDividendsReturnedOrder > 0 {
|
|
|
for i, returnedOrder := range returnedOrders {
|
|
|
// 已取消的退货单产品
|
|
|
newReturnedOrderGoodIds := utils.RemoveDuplicationInt64(orderGoodMaps[returnedOrder.DividendsOrderNumber])
|
|
|
newReturnedOrderGoodIds := utils.RemoveDuplicationInt64(orderGoodMaps[returnedOrder.DividendsReturnedOrderNumber])
|
|
|
var goodIds []int64
|
|
|
for _, good := range returnedOrder.Goods {
|
|
|
if good.OrderGoodDividendsStatus == 2 {
|
...
|
...
|
|