瀏覽代碼

修改导出

yumeng 3 年之前
父節點
當前提交
e98b7453d7

+ 8 - 5
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/report/controller/KsVideoReportCtrl.java

@@ -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)) {