...
|
...
|
@@ -515,6 +515,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
|
|
if item.DividendsType == 1 {
|
|
|
order, err := dividendsOrderRepository.FindOne(map[string]interface{}{
|
|
|
"dividendsOrderNumber": item.OrderOrReturnedOrderNum,
|
|
|
"orgId": request.OrgId,
|
|
|
})
|
|
|
if err != nil {
|
|
|
return nil, err
|
...
|
...
|
@@ -522,7 +523,7 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m |
|
|
result.DividendsOrderAmount = order.DividendsOrderAmount
|
|
|
result.CustomerName = order.CustomerName
|
|
|
} else if item.DividendsType == 2 {
|
|
|
order, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderNumber": item.OrderOrReturnedOrderNum})
|
|
|
order, err := dividendsReturnedOrderRepository.FindOne(map[string]interface{}{"dividendsReturnedOrderNumber": item.OrderOrReturnedOrderNum, "orgId": request.OrgId})
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
...
|
...
|
@@ -584,7 +585,7 @@ func (ptr *CooperationStatisticsService) RelevantCooperationContractNumbers(quer |
|
|
return nil, err
|
|
|
}
|
|
|
queryOptions = tool_funs.SimpleStructToMap(&request)
|
|
|
|
|
|
queryOptions["limit"] = 999
|
|
|
contractNumbers, err := ptr.getRelevantContracts(queryOptions)
|
|
|
return contractNumbers, err
|
|
|
} |
...
|
...
|
|