...
|
...
|
@@ -28,13 +28,13 @@ func (svr *CooperationStatisticsService) CooperationContractStatistics(contractS |
|
|
_ = transactionContext.RollbackTransaction()
|
|
|
}()
|
|
|
|
|
|
contractDividendsService, err := factory.CreateNewCooperationStatisticsService(map[string]interface{}{
|
|
|
statisticsService, err := factory.CreateCooperationStatisticsService(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
var res interface{}
|
|
|
switch contractStatisticsQuery.Action {
|
|
|
case domain_service.ContractDividends:
|
|
|
res, err = contractDividendsService.SearchContractDividends(contractStatisticsQuery.QueryOptions)
|
|
|
res, err = statisticsService.SearchContractDividends(contractStatisticsQuery.QueryOptions)
|
|
|
}
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
|
...
|
...
|
|