|
|
|
@ -69,7 +69,7 @@ public class IndexController {
|
|
|
|
|
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
if(!ShiroUtils.getLoginName().equals("admin")){
|
|
|
|
|
for (SysRole sysRole : sysRoles) {
|
|
|
|
|
//
|
|
|
|
@ -159,7 +159,7 @@ public class IndexController {
|
|
|
|
|
List<BaseMonitorunitInfoDto> baseMonitorunitInfoDtoList = new ArrayList<BaseMonitorunitInfoDto>();
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
|
|
|
|
|
if(!ShiroUtils.getLoginName().equals("admin")){
|
|
|
|
|
for (SysRole sysRole : sysRoles) {
|
|
|
|
@ -237,7 +237,7 @@ public class IndexController {
|
|
|
|
|
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
|
|
|
|
|
List<BaseSensorInfoDto> baseSensorInfoDtos = new ArrayList<>();
|
|
|
|
|
if(!ShiroUtils.getLoginName().equals("admin")){
|
|
|
|
@ -324,7 +324,7 @@ public class IndexController {
|
|
|
|
|
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseSensorTypeList.forEach(
|
|
|
|
@ -405,7 +405,7 @@ public class IndexController {
|
|
|
|
|
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
|
|
|
|
|
if(!ShiroUtils.getLoginName().equals("admin")){
|
|
|
|
|
for (SysRole sysRole : sysRoles) {
|
|
|
|
@ -465,7 +465,7 @@ public class IndexController {
|
|
|
|
|
List<RecordAlarm> recordAlarms = new ArrayList<>();
|
|
|
|
|
SysUser sysUser = ShiroUtils.getSysUser();
|
|
|
|
|
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
for (SysRole sysRole : sysRoles) {
|
|
|
|
|
RecordAlarm recordAlarm = new RecordAlarm();
|
|
|
|
|
recordAlarm.setRoleId(sysRole.getRoleId());
|
|
|
|
@ -550,7 +550,7 @@ public class IndexController {
|
|
|
|
|
List<RecordAlarmDto> recordAlarmDtos1 = recordAlarmService.selectAlarmTrendList("");
|
|
|
|
|
recordAlarmDtos.addAll(recordAlarmDtos1);
|
|
|
|
|
}else{
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.selectRolesByUserId(sysUser.getUserId());
|
|
|
|
|
List<SysRole> sysRoles = iSysRoleService.GetRoleInfoByUserId(sysUser.getUserId());
|
|
|
|
|
for (SysRole sysRole : sysRoles) {
|
|
|
|
|
RecordAlarm recordAlarm = new RecordAlarm();
|
|
|
|
|
recordAlarm.setRoleId(sysRole.getRoleId());
|
|
|
|
|