作者 yangfu

统计修改

... ... @@ -177,7 +177,7 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre
cmd.Operator)
var response = struct {
rankItems interface{} `json:"rankItems"`
RankItems interface{} `json:"rankItems"`
TotalPaymentAmount interface{} `json:"totalPaymentAmount"`
}{}
cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{
... ... @@ -215,7 +215,7 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre
if err != nil {
return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())
}
response.rankItems = cooperationUsersStatistics
response.RankItems = cooperationUsersStatistics
response.TotalPaymentAmount = creditAccountStatistics.Paid
return response, nil
... ...