正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -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{}{ |
-
请 注册 或 登录 后发表评论