正在显示
1 个修改的文件
包含
9 行增加
和
2 行删除
@@ -655,8 +655,16 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query | @@ -655,8 +655,16 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query | ||
655 | // 按关联相关人过滤 | 655 | // 按关联相关人过滤 |
656 | var contractNumbers []string | 656 | var contractNumbers []string |
657 | var err error | 657 | var err error |
658 | + var retMap = map[string]interface{}{ | ||
659 | + "xAxis": map[string]interface{}{ | ||
660 | + "data": []string{}, | ||
661 | + }, | ||
662 | + "source": map[string]interface{}{ | ||
663 | + "value": []float64{}, | ||
664 | + }, | ||
665 | + } | ||
658 | if request.UserBaseId > 0 { | 666 | if request.UserBaseId > 0 { |
659 | - var retMap = make([]interface{}, 0) | 667 | + |
660 | contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"userId": request.UserId}) | 668 | contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"userId": request.UserId}) |
661 | if len(contractNumbers) == 0 { | 669 | if len(contractNumbers) == 0 { |
662 | return retMap, nil | 670 | return retMap, nil |
@@ -666,7 +674,6 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query | @@ -666,7 +674,6 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query | ||
666 | } | 674 | } |
667 | queryOptions["cooperationContractNumbers"] = contractNumbers | 675 | queryOptions["cooperationContractNumbers"] = contractNumbers |
668 | } else if request.UserId > 0 && request.OrgId > 0 { | 676 | } else if request.UserId > 0 && request.OrgId > 0 { |
669 | - var retMap = make([]interface{}, 0) | ||
670 | contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"userId": request.UserId}) | 677 | contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"userId": request.UserId}) |
671 | if len(contractNumbers) == 0 { | 678 | if len(contractNumbers) == 0 { |
672 | return retMap, nil | 679 | return retMap, nil |
-
请 注册 或 登录 后发表评论