Class IndustryUtils

java.lang.Object
com.sankcrm.erp.industry.infrastructure.IndustryUtils

public class IndustryUtils extends Object
角色工具
Since:
1.0.0
Author:
zhsxin
  • Constructor Details

    • IndustryUtils

      public IndustryUtils()
  • Method Details

    • checkOpt

      public static Optional<Industry> checkOpt(Industry role, String roleId) throws com.sankcrm.erp.common.exception.CoreRuntimeException
      检测角色
      Parameters:
      role - 角色信息
      roleId - 角色编号
      Returns:
      角色信息
      Throws:
      com.sankcrm.erp.common.exception.CoreRuntimeException - 查询异常
    • check

      public static Industry check(Industry role, String roleId) throws com.sankcrm.erp.bus.exception.CommandInvalidException
      检测角色
      Parameters:
      role - 角色信息
      roleId - 角色编号
      Returns:
      角色信息
      Throws:
      com.sankcrm.erp.bus.exception.CommandInvalidException - 角色编号无效