作者 Your Name

Merge branch 'test' of http://gitlab.fjmaimaimai.com/allied-creation/allied-crea…

…tion-gateway into test

# Conflicts:
#	pkg/application/web/orgs/service/orgs.go
@@ -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,
@@ -188,7 +188,7 @@ func (srv UserService) DepartmentsUsers(departmentsUsersQuery *query.Departments @@ -188,7 +188,7 @@ func (srv UserService) DepartmentsUsers(departmentsUsersQuery *query.Departments
188 CompanyId: departmentsUsersQuery.Operator.CompanyId, 188 CompanyId: departmentsUsersQuery.Operator.CompanyId,
189 OrganizationId: departmentsUsersQuery.Operator.OrgId, 189 OrganizationId: departmentsUsersQuery.Operator.OrgId,
190 UserType: domain.UserTypeEmployee, //TODO:是否要共创用户 190 UserType: domain.UserTypeEmployee, //TODO:是否要共创用户
191 - InEnableStatus: []int{domain.UserStatusEnable, domain.UserStatusDisable}, 191 + InEnableStatus: []int{domain.UserStatusEnable},
192 }) 192 })
193 if err != nil { 193 if err != nil {
194 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) 194 return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error())