|
@@ -172,6 +172,10 @@ public class RoleService extends SuperService {
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
public ResultContent<Page<RoleModel>> page(RoleSearchParam param, Pageable pageable) {
|
|
public ResultContent<Page<RoleModel>> page(RoleSearchParam param, Pageable pageable) {
|
|
|
|
|
+ if (StringUtils.isEmpty(param.getOid())) {
|
|
|
|
|
+ param.setOid(getCurrentOid());
|
|
|
|
|
+ }
|
|
|
|
|
+ Assert.hasText(param.getOid(), "oid为空");
|
|
|
Page<Role> page = roleDao.page(pageable, param);
|
|
Page<Role> page = roleDao.page(pageable, param);
|
|
|
return ResultContent.buildSuccess(PageEntityUtil.concurrent2PageModel(page, this::toModel));
|
|
return ResultContent.buildSuccess(PageEntityUtil.concurrent2PageModel(page, this::toModel));
|
|
|
}
|
|
}
|