|
@@ -109,7 +109,12 @@ func (srv CompanyCreditAccountService) CreditAccountPaySearch(cmd *command.Credi |
|
@@ -109,7 +109,12 @@ func (srv CompanyCreditAccountService) CreditAccountPaySearch(cmd *command.Credi |
109
|
}
|
109
|
}
|
110
|
var items = make([]*dto.CreditAccountItem, 0)
|
110
|
var items = make([]*dto.CreditAccountItem, 0)
|
111
|
if len(cooperationContractNumbers) == 0 {
|
111
|
if len(cooperationContractNumbers) == 0 {
|
112
|
- return items, nil
|
112
|
+ return map[string]interface{}{
|
|
|
113
|
+ "grid": map[string]interface{}{
|
|
|
114
|
+ "list": items,
|
|
|
115
|
+ "sum": 0,
|
|
|
116
|
+ },
|
|
|
117
|
+ }, nil
|
113
|
}
|
118
|
}
|
114
|
|
119
|
|
115
|
var beginTime, endTime time.Time
|
120
|
var beginTime, endTime time.Time
|
|
@@ -176,10 +181,14 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre |
|
@@ -176,10 +181,14 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre |
176
|
gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
|
181
|
gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
|
177
|
cmd.Operator)
|
182
|
cmd.Operator)
|
178
|
|
183
|
|
179
|
- var response = struct {
|
184
|
+ type responseType struct {
|
180
|
RankItems interface{} `json:"rankItems"`
|
185
|
RankItems interface{} `json:"rankItems"`
|
181
|
TotalPaymentAmount interface{} `json:"totalPaymentAmount"`
|
186
|
TotalPaymentAmount interface{} `json:"totalPaymentAmount"`
|
182
|
- }{}
|
187
|
+ }
|
|
|
188
|
+ var response = responseType{
|
|
|
189
|
+ RankItems: []struct{}{},
|
|
|
190
|
+ TotalPaymentAmount: 0,
|
|
|
191
|
+ }
|
183
|
cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{
|
192
|
cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{
|
184
|
"companyId": cmd.Operator.CompanyId,
|
193
|
"companyId": cmd.Operator.CompanyId,
|
185
|
"orgId": cmd.Operator.OrgId,
|
194
|
"orgId": cmd.Operator.OrgId,
|