1、报表基础模块:内置模板相关的操作权限限制、新增模板名称唯一性限制;2、分析页统计:排单面积统计关联表修改;

This commit is contained in:
gaoqr
2024-09-05 12:20:46 +08:00
parent 54ce827f9a
commit 72c418544c
6 changed files with 139 additions and 19 deletions
@@ -1,5 +1,6 @@
package com.cf.imes.framework.security.core.util;
import cn.hutool.core.util.ObjectUtil;
import com.cf.imes.framework.common.exception.ServiceException;
import com.cf.imes.framework.common.exception.enums.GlobalErrorCodeConstants;
import com.cf.imes.framework.security.core.LoginUser;
@@ -132,4 +133,14 @@ public class SecurityFrameworkUtils {
return loginUser.getOrganId();
}
/**
* 当前用户是否超级管理员
*
* @return
*/
public static boolean isSuperAdmin() {
LoginUser loginUser = getLoginUser();
return ObjectUtil.isNotNull(loginUser) && loginUser.getIsSupAdmin();
}
}