Class IndustryUtils
java.lang.Object
com.sankcrm.erp.industry.infrastructure.IndustryUtils
角色工具
- Since:
- 1.0.0
- Author:
- zhsxin
-
Constructor Summary
Constructors -
Method Summary
-
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- 角色编号无效
-