@Service @Transactional(rollbackFor=java.lang.Exception.class) public class CoreUserDeptServiceImpl extends BaseServiceImpl<CoreUserDept> implements CoreUserDeptService
构造器和说明 |
---|
CoreUserDeptServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreUserDept |
addEntity(CoreUserDept coreUserDept)
新增实体并返回实体
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
findUserDeptByCond(java.lang.String userId,
java.lang.String roleId,
java.lang.String roleCode,
java.lang.String orgId,
java.lang.String deptId)
根据用户id,角色id,机构id,部门id查询用户的部门角色
|
java.util.List<CoreUserDept> |
findUserDeptByUserid(java.lang.String userid)
通过用户ID查询用户的部门角色
|
add, confirm, findAll, findList, getEntity, modify, removeById, removeByIds, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, getEntity, modify, removeById, removeByIds, startProcess, startProcess
@Transactional(propagation=REQUIRED) public java.util.List<CoreUserDept> findUserDeptByUserid(java.lang.String userid)
CoreUserDeptService
findUserDeptByUserid
在接口中 CoreUserDeptService
userid
- 用户idpublic CoreUserDept addEntity(CoreUserDept coreUserDept) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreUserDept>
addEntity
在类中 BaseServiceImpl<CoreUserDept>
coreUserDept
- 实体对象java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> findUserDeptByCond(java.lang.String userId, java.lang.String roleId, java.lang.String roleCode, java.lang.String orgId, java.lang.String deptId) throws java.lang.Exception
CoreUserDeptService
findUserDeptByCond
在接口中 CoreUserDeptService
userId
- 用户idroleId
- 角色idroleCode
- 角色编号orgId
- 机构iddeptId
- 部门idjava.lang.Exception
- 出错会抛出异常