Przeglądaj źródła

李娜、王垒需求接口调整

hcst_sunzhen 4 lat temu
rodzic
commit
2e91d0e8c6

+ 6 - 4
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaishouReportDailyAccountServiceImpl.java

@@ -36,8 +36,9 @@ public class KuaishouReportDailyAccountServiceImpl extends ServiceImpl<KuaishouR
         List<ProjectAccountDTO> projectAccountDTOList = new ArrayList<>();
 
         if(projectList==null || projectList.size()==0){
-            //LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
-            String userId = "a6abfea0f27843bf8595a234410afb04";
+            LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+            //String userId = "a6abfea0f27843bf8595a234410afb04";
+            String userId = sysUser.getId();
             String roleCode = dailyAccountMapper.getRoleCodeByUserId(userId);
 
             List<Long> mediaIds = new ArrayList<>();
@@ -95,8 +96,9 @@ public class KuaishouReportDailyAccountServiceImpl extends ServiceImpl<KuaishouR
         List<ProjectAccountDTO> projectAccountDTOList = new ArrayList<>();
 
         if(projectList==null || projectList.size()==0){
-            //LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
-            String userId = "e9ca23d68d884d4ebb19d07889727dae";
+            LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
+            //String userId = "e9ca23d68d884d4ebb19d07889727dae";
+            String userId = sysUser.getId();
             String roleCode = dailyAccountMapper.getRoleCodeByUserId(userId);
 
             List<Long> mediaIds = new ArrayList<>();