Search in sources :

Example 1 with ActionVo

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);
}
Also used : PageInfo(com.github.pagehelper.PageInfo) UacAction(com.paascloud.provider.model.domain.UacAction) ActionVo(com.paascloud.provider.model.vo.ActionVo) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

PageInfo (com.github.pagehelper.PageInfo)1 UacAction (com.paascloud.provider.model.domain.UacAction)1 ActionVo (com.paascloud.provider.model.vo.ActionVo)1 Transactional (org.springframework.transaction.annotation.Transactional)1