...
|
...
|
@@ -50,6 +50,8 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst |
|
|
for _, dividendsEstimate := range dividendsEstimates {
|
|
|
// 根据当前分红预算单的分红订单号或退货单号获取分红预算单
|
|
|
if countRelative, dividendsEstimatesRelative, err2 := dividendsEstimateRepository.Find(map[string]interface{}{
|
|
|
"companyId": dividendsEstimate.Company.CompanyId,
|
|
|
"orgId": dividendsEstimate.Org.OrgId,
|
|
|
"orderOrReturnedOrderNum": dividendsEstimate.OrderOrReturnedOrderNum,
|
|
|
}); err2 != nil {
|
|
|
return nil, err2
|
...
|
...
|
@@ -86,6 +88,8 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst |
|
|
|
|
|
// 获取分红订单
|
|
|
if countDividendsOrder, orders, err4 := dividendsOrderRepository.Find(map[string]interface{}{
|
|
|
"companyId": dividendsEstimates[0].Company.CompanyId,
|
|
|
"orgId": dividendsEstimates[0].Org.OrgId,
|
|
|
"dividendsOrderNumbers": orderNums,
|
|
|
}); err4 != nil {
|
|
|
return nil, err4
|
...
|
...
|
@@ -103,6 +107,8 @@ func (domainService *CancelDividendsEstimateService) CancelEstimate(dividendsEst |
|
|
|
|
|
// 获取分红退货单
|
|
|
if countDividendsReturnedOrder, returnedOrders, err5 := dividendsReturnedOrderRepository.Find(map[string]interface{}{
|
|
|
"companyId": dividendsEstimates[0].Company.CompanyId,
|
|
|
"orgId": dividendsEstimates[0].Org.OrgId,
|
|
|
"dividendsReturnedOrderNumbers": returnedOrderNums,
|
|
|
}); err5 != nil {
|
|
|
return nil, err5
|
...
|
...
|
|