作者 yangfu

支付记录列表修改

@@ -181,10 +181,14 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre @@ -181,10 +181,14 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre
181 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 181 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
182 cmd.Operator) 182 cmd.Operator)
183 183
184 - var response = struct { 184 + type responseType struct {
185 RankItems interface{} `json:"rankItems"` 185 RankItems interface{} `json:"rankItems"`
186 TotalPaymentAmount interface{} `json:"totalPaymentAmount"` 186 TotalPaymentAmount interface{} `json:"totalPaymentAmount"`
187 - }{} 187 + }
  188 + var response = responseType{
  189 + RankItems: []struct{}{},
  190 + TotalPaymentAmount: 0,
  191 + }
188 cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{ 192 cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{
189 "companyId": cmd.Operator.CompanyId, 193 "companyId": cmd.Operator.CompanyId,
190 "orgId": cmd.Operator.OrgId, 194 "orgId": cmd.Operator.OrgId,