From 63a661a78e1999423ea7d94277a645ed4b9e7e6d Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期五, 25 八月 2023 15:22:23 +0800
Subject: [PATCH] 优化minio工具类和其他工具类位置 优化派警管理列表分页问题
---
ard-work/src/main/java/com/ruoyi/sy/gps31/PositionContainer.java | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/sy/gps31/PositionContainer.java b/ard-work/src/main/java/com/ruoyi/sy/gps31/PositionContainer.java
index ac30783..e9f34fc 100644
--- a/ard-work/src/main/java/com/ruoyi/sy/gps31/PositionContainer.java
+++ b/ard-work/src/main/java/com/ruoyi/sy/gps31/PositionContainer.java
@@ -1,19 +1,27 @@
package com.ruoyi.sy.gps31;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
public class PositionContainer {
private static Map<String, Map<String,Map<String,Object>>> deptPositionMap = new HashMap();//渚濋儴闂ㄥ瓨鏀惧疄鏂借溅杈嗕綅缃�:deptId锛宑arId锛岃溅杈嗕綅缃�
- public static Map<String, Map<String, Map<String,Object>>> getDeptPositionMap() {
+ private static Map<String, Map<String,Map<String,Object>>> userPositionMap = new HashMap();//渚濈敤鎴峰瓨鏀惧疄鏂借溅杈嗕綅缃�:userId锛宑arId锛岃溅杈嗕綅缃�
+
+ public static synchronized Map<String, Map<String, Map<String,Object>>> getDeptPositionMap() {
return deptPositionMap;
}
- public static void setDeptPositionMap(Map<String, Map<String, Map<String,Object>>> deptPositionMap) {
+ public static synchronized void setDeptPositionMap(Map<String, Map<String, Map<String,Object>>> deptPositionMap) {
PositionContainer.deptPositionMap = deptPositionMap;
}
+ public static synchronized Map<String, Map<String, Map<String, Object>>> getUserPositionMap() {
+ return userPositionMap;
+ }
+
+ public static synchronized void setUserPositionMap(Map<String, Map<String, Map<String, Object>>> userPositionMap) {
+ PositionContainer.userPositionMap = userPositionMap;
+ }
}
--
Gitblit v1.9.3