...
|
...
|
@@ -109,7 +109,12 @@ func (srv CompanyCreditAccountService) CreditAccountPaySearch(cmd *command.Credi |
|
|
}
|
|
|
var items = make([]*dto.CreditAccountItem, 0)
|
|
|
if len(cooperationContractNumbers) == 0 {
|
|
|
return items, nil
|
|
|
return map[string]interface{}{
|
|
|
"grid": map[string]interface{}{
|
|
|
"list": items,
|
|
|
"sum": 0,
|
|
|
},
|
|
|
}, nil
|
|
|
}
|
|
|
|
|
|
var beginTime, endTime time.Time
|
...
|
...
|
@@ -176,10 +181,14 @@ func (srv CompanyCreditAccountService) PaymentHistoryStatistics(cmd *command.Cre |
|
|
gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
|
|
|
cmd.Operator)
|
|
|
|
|
|
var response = struct {
|
|
|
type responseType struct {
|
|
|
RankItems interface{} `json:"rankItems"`
|
|
|
TotalPaymentAmount interface{} `json:"totalPaymentAmount"`
|
|
|
}{}
|
|
|
}
|
|
|
var response = responseType{
|
|
|
RankItems: []struct{}{},
|
|
|
TotalPaymentAmount: 0,
|
|
|
}
|
|
|
cooperationContractNumbers, err := gateway.RelevantCooperationContractNumbers(allied_creation_cooperation.RelevantCooperationContractNumbers, map[string]interface{}{
|
|
|
"companyId": cmd.Operator.CompanyId,
|
|
|
"orgId": cmd.Operator.OrgId,
|
...
|
...
|
|