@Service @Transactional public class SysRoleUserService extends BaseService<SysRoleUser>
限定符和类型 | 字段和说明 |
---|---|
private SysRoleUserDao |
dao |
basedao, log
构造器和说明 |
---|
SysRoleUserService() |
限定符和类型 | 方法和说明 |
---|---|
void |
dealRoleUsers(java.lang.Long userId,
java.lang.Integer[] roleIds) |
int |
deleteByRoleId(java.lang.Integer roleId) |
int |
deleteByUserId(java.lang.Long userId) |
PageHandler |
getPage(java.lang.Integer roleId,
java.lang.Long userId,
java.lang.Integer pageIndex,
java.lang.Integer pageSize) |
delete, delete, delete, getEntity, getEntity, getEntitys, getEntitys, getEntitys, getEntitys, getId, save, save, update, update
private SysRoleUserDao dao
@Transactional(readOnly=true) public PageHandler getPage(java.lang.Integer roleId, java.lang.Long userId, java.lang.Integer pageIndex, java.lang.Integer pageSize)
roleId
- userId
- pageIndex
- pageSize
- public void dealRoleUsers(java.lang.Long userId, java.lang.Integer[] roleIds)
userId
- roleIds
- public int deleteByUserId(java.lang.Long userId)
userId
- public int deleteByRoleId(java.lang.Integer roleId)
roleId
-