|
@@ -515,6 +515,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
|
@@ -515,6 +515,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
515
|
if item.DividendsType == 1 {
|
515
|
if item.DividendsType == 1 {
|
516
|
order, err := dividendsOrderRepository.FindOne(map[string]interface{}{
|
516
|
order, err := dividendsOrderRepository.FindOne(map[string]interface{}{
|
517
|
"dividendsOrderNumber": item.OrderOrReturnedOrderNum,
|
517
|
"dividendsOrderNumber": item.OrderOrReturnedOrderNum,
|
|
|
518
|
+ "orgId": request.OrgId,
|
518
|
})
|
519
|
})
|
519
|
if err != nil {
|
520
|
if err != nil {
|
520
|
return nil, err
|
521
|
return nil, err
|
|
@@ -522,7 +523,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
|
@@ -522,7 +523,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
522
|
result.DividendsOrderAmount = order.DividendsOrderAmount
|
523
|
result.DividendsOrderAmount = order.DividendsOrderAmount
|
523
|
result.CustomerName = order.CustomerName
|
524
|
result.CustomerName = order.CustomerName
|
524
|
} else if item.DividendsType == 2 {
|
525
|
} else if item.DividendsType == 2 {
|
525
|
- order, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderNumber": item.OrderOrReturnedOrderNum})
|
526
|
+ order, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderNumber": item.OrderOrReturnedOrderNum, "orgId": request.OrgId})
|
526
|
if err != nil {
|
527
|
if err != nil {
|
527
|
return nil, err
|
528
|
return nil, err
|
528
|
}
|
529
|
}
|
|
@@ -584,7 +585,7 @@ func (ptr *CooperationStatisticsService) RelevantCooperationContractNumbers(quer |
|
@@ -584,7 +585,7 @@ func (ptr *CooperationStatisticsService) RelevantCooperationContractNumbers(quer |
584
|
return nil, err
|
585
|
return nil, err
|
585
|
}
|
586
|
}
|
586
|
queryOptions = tool_funs.SimpleStructToMap(&request)
|
587
|
queryOptions = tool_funs.SimpleStructToMap(&request)
|
587
|
-
|
588
|
+ queryOptions["limit"] = 999
|
588
|
contractNumbers, err := ptr.getRelevantContracts(queryOptions)
|
589
|
contractNumbers, err := ptr.getRelevantContracts(queryOptions)
|
589
|
return contractNumbers, err
|
590
|
return contractNumbers, err
|
590
|
} |
591
|
} |