作者 yangfu

优化

@@ -668,7 +668,7 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query @@ -668,7 +668,7 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query
668 } 668 }
669 if request.UserBaseId > 0 { 669 if request.UserBaseId > 0 {
670 670
671 - contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"userId": request.UserId}) 671 + contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"userBaseId": request.UserId, "offsetLimit": false})
672 if len(contractNumbers) == 0 { 672 if len(contractNumbers) == 0 {
673 return retMap, nil 673 return retMap, nil
674 } 674 }
@@ -677,7 +677,7 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query @@ -677,7 +677,7 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query
677 } 677 }
678 queryOptions["cooperationContractNumbers"] = contractNumbers 678 queryOptions["cooperationContractNumbers"] = contractNumbers
679 } else if request.UserId > 0 && request.OrgId > 0 { 679 } else if request.UserId > 0 && request.OrgId > 0 {
680 - contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"userId": request.UserId}) 680 + contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"userId": request.UserId, "offsetLimit": false})
681 if len(contractNumbers) == 0 { 681 if len(contractNumbers) == 0 {
682 return retMap, nil 682 return retMap, nil
683 } 683 }
@@ -437,12 +437,12 @@ func (ptr *CooperationStatisticsService) DividendsStatistics(queryOptions map[st @@ -437,12 +437,12 @@ func (ptr *CooperationStatisticsService) DividendsStatistics(queryOptions map[st
437 var contractNumbers []string 437 var contractNumbers []string
438 var err error 438 var err error
439 if request.OrgId > 0 && request.UserId > 0 { 439 if request.OrgId > 0 && request.UserId > 0 {
440 - contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"orgId": request.OrgId, "userId": request.UserId}) 440 + contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"orgId": request.OrgId, "userId": request.UserId, "offsetLimit": false})
441 if err != nil { 441 if err != nil {
442 return struct{}{}, err 442 return struct{}{}, err
443 } 443 }
444 } else if request.UserBaseId > 0 { 444 } else if request.UserBaseId > 0 {
445 - contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"orgId": request.OrgId, "userBaseId": request.UserBaseId}) 445 + contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"orgId": request.OrgId, "userBaseId": request.UserBaseId, "offsetLimit": false})
446 if err != nil { 446 if err != nil {
447 return struct{}{}, err 447 return struct{}{}, err
448 } 448 }
@@ -565,12 +565,12 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m @@ -565,12 +565,12 @@ func (ptr *CooperationStatisticsService) SearchDividendsEstimates(queryOptions m
565 var contractNumbers []string 565 var contractNumbers []string
566 var err error 566 var err error
567 if request.OrgId > 0 && request.UserId > 0 { 567 if request.OrgId > 0 && request.UserId > 0 {
568 - contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"orgId": request.OrgId, "userId": request.UserId}) 568 + contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"orgId": request.OrgId, "userId": request.UserId, "offsetLimit": false})
569 if err != nil { 569 if err != nil {
570 return struct{}{}, err 570 return struct{}{}, err
571 } 571 }
572 } else if request.UserBaseId > 0 { 572 } else if request.UserBaseId > 0 {
573 - contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"orgId": request.OrgId, "userBaseId": request.UserBaseId}) 573 + contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"orgId": request.OrgId, "userBaseId": request.UserBaseId, "offsetLimit": false})
574 if err != nil { 574 if err != nil {
575 return struct{}{}, err 575 return struct{}{}, err
576 } 576 }