作者 yangfu

参数验证修改

@@ -121,7 +121,11 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer @@ -121,7 +121,11 @@ func (srv PersonStatisticsService) CompanyStatistics(cmd *command.CooperationPer
121 } 121 }
122 companyList = append(companyList, user.Org.OrgId) 122 companyList = append(companyList, user.Org.OrgId)
123 } 123 }
124 - 124 + if len(companyList) == 0 {
  125 + return map[string]interface{}{
  126 + "list": []struct{}{},
  127 + }, nil
  128 + }
125 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation( 129 gateway := allied_creation_cooperation.NewHttplibAlliedCreationCooperation(
126 cmd.Operator) 130 cmd.Operator)
127 result, err := gateway.CooperationStatistics(allied_creation_cooperation.CooperationCompanyStatistics, map[string]interface{}{ 131 result, err := gateway.CooperationStatistics(allied_creation_cooperation.CooperationCompanyStatistics, map[string]interface{}{