|
@@ -668,7 +668,17 @@ public class Visualization_Event_Controller extends AppBaseController {
|
|
forestdevice.setDeptId(userInfoUtil.getLoginUserInfo().getDeptId());
|
|
forestdevice.setDeptId(userInfoUtil.getLoginUserInfo().getDeptId());
|
|
return itResForestdeviceService.selectTResForestdeviceList(forestdevice);
|
|
return itResForestdeviceService.selectTResForestdeviceList(forestdevice);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private ISysConfigService configService;
|
|
|
|
+ private boolean isSpecialUsr(String userIds, SysUser user){
|
|
|
|
+ if(StringUtils.isEmpty(userIds)) return false;
|
|
|
|
+ String [] userIdArr = userIds.split(",");
|
|
|
|
+ for(int i=0;i<userIdArr.length;i++){
|
|
|
|
+ if(user.getUserId().toString().equals(userIdArr[i]))
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
|
|
@RequestMapping("/getVisualizationEvent_special_user")
|
|
@RequestMapping("/getVisualizationEvent_special_user")
|
|
public String getVisualizationEventspecial_user(ModelMap map, HttpServletRequest request) {
|
|
public String getVisualizationEventspecial_user(ModelMap map, HttpServletRequest request) {
|
|
@@ -679,6 +689,9 @@ public class Visualization_Event_Controller extends AppBaseController {
|
|
map.put("action", action);//跳转的路径
|
|
map.put("action", action);//跳转的路径
|
|
map.put("loginName", ShiroUtils.getLoginName());
|
|
map.put("loginName", ShiroUtils.getLoginName());
|
|
map.put("carCounts", carCounts);
|
|
map.put("carCounts", carCounts);
|
|
|
|
+
|
|
|
|
+ SysUser user = ShiroUtils.getSysUser();
|
|
|
|
+ map.put("isSpecialUser",isSpecialUsr(configService.selectConfigByKey("special_usr"),user));
|
|
return prefix + "/event_special_usr";
|
|
return prefix + "/event_special_usr";
|
|
}
|
|
}
|
|
|
|
|