类 SHUtils

java.lang.Object
com.sh.common.util.SHUtils
直接已知子类:
AuthUtil, ContextUtil, ContextUtil_20200609, HTMLUtil, JSONUtil, ListUtil, LoginCache, QueueUtil, RandomUtil, RuntimeUtil, ScheduleUtil, SHExUtil, SHSystemExUtil

public class SHUtils extends Object

Description: 首亨框架工具类

Title:首亨软件 - CRM

  • 字段详细资料

    • 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

      public static String getRoleDeptUser(DataCenter dc, String userId) throws Exception
      获取用户权限下的所有部门员工
      参数:
      dc - DataCenter
      userId - String
      返回:
      String
      抛出:
      Exception - Exception
    • getDeptAllUser

      public static String getDeptAllUser(DataCenter dc, String deptId) throws Exception
      获取部门下的所有用户,包含下级部门
      参数:
      dc - DataCenter
      deptId - String
      返回:
      String
      抛出:
      Exception - Exception
    • isContain

      public static boolean isContain(String deptIds, String deptId)
      判断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