From 7f6033c2b60979a9566b33440b716d17803e18aa Mon Sep 17 00:00:00 2001
From: zhangnaisong <2434969829@qq.com>
Date: 星期六, 20 一月 2024 14:28:38 +0800
Subject: [PATCH] 查询本部门在线PC端及指挥端修改提交
---
ard-work/src/main/java/com/ruoyi/app/position/service/impl/ArdAppPositionServiceImpl.java | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/app/position/service/impl/ArdAppPositionServiceImpl.java b/ard-work/src/main/java/com/ruoyi/app/position/service/impl/ArdAppPositionServiceImpl.java
index fe36f94..141edd6 100644
--- a/ard-work/src/main/java/com/ruoyi/app/position/service/impl/ArdAppPositionServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/app/position/service/impl/ArdAppPositionServiceImpl.java
@@ -332,10 +332,14 @@
Map<String, List<SysUser>> result = new HashMap();
List<SysUser> commanderList = sysUserMapper.getOnlineCommander(usersId);
result.put("commander",commanderList);
- List<String> onLinePCIdList = new ArrayList();
- onLinePCIdList.addAll(ONLINE_USER_SESSIONS.keySet());
- List<SysUser> pcList = sysUserMapper.getOnlinePC(usersId,onLinePCIdList);
- result.put("pc",pcList);
+ try{
+ List<String> onLinePCIdList = new ArrayList();
+ onLinePCIdList.addAll(ONLINE_USER_SESSIONS.keySet());
+ List<SysUser> pcList = sysUserMapper.getOnlinePC(usersId,onLinePCIdList);
+ result.put("pc",pcList);
+ }catch(Exception e){
+ result.put("pc",new ArrayList());
+ }
return result;
}
}
--
Gitblit v1.9.3