|
@@ -15,6 +15,7 @@ public class RedisLikeService {
|
|
|
private final static Map<String, String> regionMap = new HashMap<>();
|
|
|
private final static Map<String, String> regionParentMap = new HashMap<>();
|
|
|
private final static Map<String, String> ampmMap = new HashMap<>();
|
|
|
+ private final static Map<String, String> deptPosMap = new HashMap<>();
|
|
|
private final RedisLikeDao dao;
|
|
|
|
|
|
public RedisLikeService(RedisLikeDao dao) {
|
|
@@ -92,4 +93,18 @@ public class RedisLikeService {
|
|
|
}
|
|
|
return ampmName;
|
|
|
}
|
|
|
+
|
|
|
+ public String getDeptPos(String code) {
|
|
|
+ if (StringUtil.isBlank(code)) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ String deptPos = deptPosMap.get(code);
|
|
|
+ if (null == deptPos) {
|
|
|
+ deptPos = dao.selectDeptPos(code);
|
|
|
+ if (StringUtil.notBlank(deptPos)) {
|
|
|
+ deptPosMap.put(code, deptPos);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return deptPos;
|
|
|
+ }
|
|
|
}
|