use of com.paascloud.provider.model.vo.ActionVo in project paascloud-master by paascloud.
the class UacActionServiceImpl method queryActionListWithPage.
@Override
@Transactional(readOnly = true, rollbackFor = Exception.class)
public PageInfo queryActionListWithPage(ActionMainQueryDto actionMainQueryDto) {
List<Long> menuIdList = actionMainQueryDto.getMenuIdList();
Long menuId = null;
if (PublicUtil.isNotEmpty(menuIdList)) {
menuId = menuIdList.get(menuIdList.size() - 1);
}
UacAction uacAction = new UacAction();
uacAction.setMenuId(menuId);
BeanUtils.copyProperties(actionMainQueryDto, uacAction);
uacAction.setOrderBy("update_time desc");
PageHelper.startPage(actionMainQueryDto.getPageNum(), actionMainQueryDto.getPageSize());
List<ActionVo> actionList = uacActionMapper.queryActionListWithPage(uacAction);
return new PageInfo<>(actionList);
}
Aggregations