@CacheConfig(cacheNames="RoleCache") @Service @Transactional(rollbackFor=java.lang.Exception.class) public class CoreRoleServiceImpl extends BaseServiceImpl<CoreRole> implements CoreRoleService
构造器和说明 |
---|
CoreRoleServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreRole |
addEntity(CoreRole coreRole)
新增实体并返回实体
|
java.util.List<java.util.Map> |
findAllOrgRoleEx(java.lang.String condition,
java.lang.Boolean isAllOrg)
获取所有部门角色
|
java.util.List<CoreRole> |
findAllRole(java.lang.String orgid,
boolean isall,
java.lang.String condition)
根据机构查询该机构可以看见的角色
|
java.util.List<CoreRole> |
findRoleByCron(java.util.Map<java.lang.String,java.lang.Object> map)
通过条件查询角色
|
java.util.List<CoreRole> |
findUnuseRoleByOrgid(java.lang.String orgId)
查询机构不使用的角色
|
int |
modify(CoreRole entity)
更新实体
|
void |
modifyMx(CoreRole coreRole)
更新明细表
|
RetVo |
removeByCon(java.util.Map<java.lang.String,java.lang.String> map)
根据条件进行删除
|
add, confirm, findAll, findList, getEntity, removeById, removeByIds, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, getEntity, removeById, removeByIds, startProcess, startProcess
public java.util.List<CoreRole> findRoleByCron(java.util.Map<java.lang.String,java.lang.Object> map)
CoreRoleService
findRoleByCron
在接口中 CoreRoleService
map
- 参数@CacheEvict(allEntries=true, beforeInvocation=true) public int modify(CoreRole entity) throws java.lang.Exception
BaseService
modify
在接口中 BaseService<CoreRole>
modify
在类中 BaseServiceImpl<CoreRole>
entity
- 实体对象java.lang.Exception
- 出错会抛出异常@Cacheable(key="#orgid+#isall+#condition") @Transactional(propagation=REQUIRED) public java.util.List<CoreRole> findAllRole(java.lang.String orgid, boolean isall, java.lang.String condition)
CoreRoleService
findAllRole
在接口中 CoreRoleService
orgid
- 机构idisall
- 是不是全部角色,默认不是,排除系统管理员condition
- 条件@Transactional(propagation=REQUIRED) public java.util.List<java.util.Map> findAllOrgRoleEx(java.lang.String condition, java.lang.Boolean isAllOrg)
CoreRoleService
findAllOrgRoleEx
在接口中 CoreRoleService
condition
- 条件isAllOrg
- 是否隐藏所有机构@CacheEvict(allEntries=true, beforeInvocation=true) public CoreRole addEntity(CoreRole coreRole) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreRole>
addEntity
在类中 BaseServiceImpl<CoreRole>
coreRole
- 实体对象java.lang.Exception
- 出错会抛出异常@CacheEvict(allEntries=true, beforeInvocation=true) public RetVo removeByCon(java.util.Map<java.lang.String,java.lang.String> map) throws java.lang.Exception
CoreRoleService
removeByCon
在接口中 CoreRoleService
map
- 参数java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public java.util.List<CoreRole> findUnuseRoleByOrgid(java.lang.String orgId)
CoreRoleService
findUnuseRoleByOrgid
在接口中 CoreRoleService
orgId
- 机构id@CacheEvict(allEntries=true, beforeInvocation=true) public void modifyMx(CoreRole coreRole)
CoreRoleService
modifyMx
在接口中 CoreRoleService
coreRole
- 角色实例