...
|
...
|
@@ -655,8 +655,16 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query |
|
|
// 按关联相关人过滤
|
|
|
var contractNumbers []string
|
|
|
var err error
|
|
|
var retMap = map[string]interface{}{
|
|
|
"xAxis": map[string]interface{}{
|
|
|
"data": []string{},
|
|
|
},
|
|
|
"source": map[string]interface{}{
|
|
|
"value": []float64{},
|
|
|
},
|
|
|
}
|
|
|
if request.UserBaseId > 0 {
|
|
|
var retMap = make([]interface{}, 0)
|
|
|
|
|
|
contractNumbers, err = ptr.getUnderTakerContracts(map[string]interface{}{"userId": request.UserId})
|
|
|
if len(contractNumbers) == 0 {
|
|
|
return retMap, nil
|
...
|
...
|
@@ -666,7 +674,6 @@ func (ptr *CooperationStatisticsService) PaymentHistoryHistogramStatistics(query |
|
|
}
|
|
|
queryOptions["cooperationContractNumbers"] = contractNumbers
|
|
|
} else if request.UserId > 0 && request.OrgId > 0 {
|
|
|
var retMap = make([]interface{}, 0)
|
|
|
contractNumbers, err = ptr.getRelevantContracts(map[string]interface{}{"userId": request.UserId})
|
|
|
if len(contractNumbers) == 0 {
|
|
|
return retMap, nil
|
...
|
...
|
|