|
@@ -207,12 +207,15 @@ public class KsVideoReportCtrl {
|
|
|
if (Check.isNull(user)) {
|
|
|
throw new Exception("用户信息为空");
|
|
|
}
|
|
|
- if (!"管理员".equals(user.getRealname()) && !"吴睿刚".equals(user.getRealname())) {
|
|
|
- UserCompany userCompany = companyService.getByUserId(userId);
|
|
|
- if (Check.isNull(userCompany)) {
|
|
|
- throw new Exception("公司信息为空");
|
|
|
+ JSONArray accountIds = requestBody.getJSONArray("accountIds");
|
|
|
+ if (Check.isNull(accountIds)) {
|
|
|
+ if (!"管理员".equals(user.getRealname()) && !"吴睿刚".equals(user.getRealname())) {
|
|
|
+ UserCompany userCompany = companyService.getByUserId(userId);
|
|
|
+ if (Check.isNull(userCompany)) {
|
|
|
+ throw new Exception("公司信息为空");
|
|
|
+ }
|
|
|
+ requestMap.put("companyId", userCompany.getCompanyId());
|
|
|
}
|
|
|
- requestMap.put("companyId", userCompany.getCompanyId());
|
|
|
}
|
|
|
String filedAll = JsonResourceUtil.joinAllFiled(AccountReportConstants.getKuaishouVideoReportMap());
|
|
|
if (Check.isNull(filedAll)) {
|