类 SHUtils
java.lang.Object
com.sh.common.util.SHUtils
- 直接已知子类:
AuthUtil,ContextUtil,ContextUtil_20200609,HTMLUtil,JSONUtil,ListUtil,LoginCache,QueueUtil,RandomUtil,RuntimeUtil,ScheduleUtil,SHExUtil,SHSystemExUtil
Description: 首亨框架工具类
Title:首亨软件 - CRM
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringgetDeptAllUser(DataCenter dc, String deptId) 获取部门下的所有用户,包含下级部门static jakarta.servlet.http.HttpServletRequeststatic jakarta.servlet.http.HttpServletResponsestatic StringgetRoleDeptUser(DataCenter dc, String userId) 获取用户权限下的所有部门员工static boolean是否用Ajax查询数据static booleanisAjaxQuery(jakarta.servlet.http.HttpServletRequest request) 是否用Ajax查询数据static boolean判断deptId是否在deptIds中
-
字段详细资料
-
log4j
protected static org.apache.logging.log4j.Logger log4j
-
-
构造器详细资料
-
SHUtils
public SHUtils()
-
-
方法详细资料
-
getRequest
public static jakarta.servlet.http.HttpServletRequest getRequest() -
getResponse
public static jakarta.servlet.http.HttpServletResponse getResponse() -
getRoleDeptUser
获取用户权限下的所有部门员工- 参数:
dc- DataCenteruserId- String- 返回:
- String
- 抛出:
Exception- Exception
-
getDeptAllUser
获取部门下的所有用户,包含下级部门- 参数:
dc- DataCenterdeptId- String- 返回:
- String
- 抛出:
Exception- Exception
-
isContain
判断deptId是否在deptIds中- 参数:
deptIds- 以逗号分隔的字符串deptId- String- 返回:
- true|false
-
isAjaxQuery
public static boolean isAjaxQuery(jakarta.servlet.http.HttpServletRequest request) 是否用Ajax查询数据- 参数:
request- HttpServletRequest- 返回:
- boolean
-
isAjaxQuery
public static boolean isAjaxQuery()是否用Ajax查询数据- 返回:
- boolean
-