From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期五, 27 九月 2024 17:56:53 +0800
Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/HMSysModConfigController.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/HMSysModConfigController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/HMSysModConfigController.java
index 858f465..0651684 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/HMSysModConfigController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/HMSysModConfigController.java
@@ -4,6 +4,7 @@
 import com.vci.corba.common.PLException;
 import com.vci.corba.framework.data.FuncOperationInfo;
 import com.vci.corba.framework.data.OperateInfo;
+import com.vci.dto.RoleInfoDTO;
 import com.vci.dto.RoleRightDTO;
 import com.vci.dto.RoleRightParamDTO;
 import com.vci.frameworkcore.compatibility.ISmFunctionQueryService;
@@ -104,6 +105,23 @@
         }catch (Exception e){
             e.printStackTrace();
             String errorMsg = "鏌ヨ瀛愭ā鍧楁椂鍑虹幇閿欒锛屽師鍥狅細"+ VciBaseUtil.getExceptionMessage(e);
+            logger.error(errorMsg);
+            throw new VciBaseException(errorMsg);
+        }
+    }
+
+    /**
+     * 瑙掕壊鍒楄〃
+     * @param roleName 鎼滅储鐨勮鑹�
+     * @return 瑙掕壊鍒楄〃
+     */
+    @GetMapping("/getRoleList")
+    public BaseResult<List<RoleInfoDTO>> getRoleList(String roleName) {
+        try {
+            return BaseResult.dataList(functionQueryService.getRoleList(roleName));
+        }catch (Exception e){
+            e.printStackTrace();
+            String errorMsg = "鏌ヨ鏃跺嚭鐜伴敊璇紝鍘熷洜锛�"+ VciBaseUtil.getExceptionMessage(e);
             logger.error(errorMsg);
             throw new VciBaseException(errorMsg);
         }
@@ -488,4 +506,20 @@
         }
     }
 
+    /**
+     * 鑾峰彇褰撳墠鐢ㄦ埛鍦ㄧ嚎浜烘暟
+     * @return
+     */
+    @GetMapping("/getOnlineUsersNum")
+    public BaseResult getOnlineUsersNum() {
+        try {
+            long onlineUsersNum = hmSysModConfigService.getOnlineUsersNum();
+            return BaseResult.success(onlineUsersNum);
+        } catch (Exception e) {
+            String errorMsg = "鑾峰彇褰撳墠鐢ㄦ埛鍦ㄧ嚎浜烘暟鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+            logger.error(errorMsg);
+            throw new VciBaseException(errorMsg);
+        }
+    }
+
 }

--
Gitblit v1.9.3