|
|
|
@ -9,6 +9,8 @@ import com.ibeetl.admin.core.rbac.tree.OrgItem;
|
|
|
|
|
import com.ibeetl.admin.core.util.*;
|
|
|
|
|
import com.ibeetl.admin.core.util.enums.DelFlagEnum;
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
import org.apache.commons.logging.Log;
|
|
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
|
|
import org.beetl.sql.core.engine.SQLPlaceholderST;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.cache.annotation.CacheEvict;
|
|
|
|
@ -31,6 +33,8 @@ import static com.ibeetl.admin.core.util.servlet.ServletUtils.getRequest;
|
|
|
|
|
@Service
|
|
|
|
|
public class CorePlatformService {
|
|
|
|
|
|
|
|
|
|
private final Log log = LogFactory.getLog(this.getClass());
|
|
|
|
|
|
|
|
|
|
public static Map<String,Object[]> tokenSessionMap = new ConcurrentHashMap<>();
|
|
|
|
|
|
|
|
|
|
//菜单树,组织机构树,功能树缓存标记
|
|
|
|
@ -169,6 +173,7 @@ public class CorePlatformService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public MenuItem getMenuItem(long userId, long orgId) {
|
|
|
|
|
log.info("获取菜单传入的用户ID: " + userId);
|
|
|
|
|
CoreUser user = this.sysUserDao.unique(userId);
|
|
|
|
|
if (this.isSupperAdmin(user)) {
|
|
|
|
|
return self.buildMenu();
|
|
|
|
|