|
@@ -449,8 +449,8 @@ public class MaterialReportOverViewServiceImpl implements IMaterialReportOverVie
|
|
|
|
|
|
//当项目为空的时候,根据当前登录人查询可查看的所有项目集合
|
|
|
private JSONArray getProjectsByCurrentUser(int mediaId) {
|
|
|
- //String currentUser = ((LoginUser) SecurityUtils.getSubject().getPrincipal()).getId();
|
|
|
- String currentUser = "e9ca23d68d884d4ebb19d07889727dae";
|
|
|
+ String currentUser = ((LoginUser) SecurityUtils.getSubject().getPrincipal()).getId();
|
|
|
+ //String currentUser = "e9ca23d68d884d4ebb19d07889727dae";
|
|
|
//TODO 为了解决管理员等角色初始化查全部项目查询效率慢的问题判断角色,待优化
|
|
|
String roleCode = roleService.getRoleCodeByUserId(currentUser);
|
|
|
if (roleCode.equals("admin")) {
|