Search in sources :

Example 1 with BizTestEntity

use of com.jun.plugin.bizservice.entity.BizTestEntity in project jun_springboot_api_service by wujun728.

the class BizTestController method findListByPage.

@ApiOperation(value = "查询分页数据")
@PostMapping("bizTest/listByPage")
@RequiresPermissions("bizTest:list")
@ResponseBody
public DataResult findListByPage(@RequestBody BizTestEntity bizTest) {
    Page page = new Page(bizTest.getPage(), bizTest.getLimit());
    LambdaQueryWrapper<BizTestEntity> queryWrapper = Wrappers.lambdaQuery();
    // 查询条件示例
    // queryWrapper.eq(BizTestEntity::getId, bizTest.getId());
    IPage<BizTestEntity> iPage = bizTestService.page(page, queryWrapper);
    return DataResult.success(iPage);
}
Also used : Page(com.baomidou.mybatisplus.extension.plugins.pagination.Page) IPage(com.baomidou.mybatisplus.core.metadata.IPage) BizTestEntity(com.jun.plugin.bizservice.entity.BizTestEntity) RequiresPermissions(org.apache.shiro.authz.annotation.RequiresPermissions) ApiOperation(io.swagger.annotations.ApiOperation)

Aggregations

IPage (com.baomidou.mybatisplus.core.metadata.IPage)1 Page (com.baomidou.mybatisplus.extension.plugins.pagination.Page)1 BizTestEntity (com.jun.plugin.bizservice.entity.BizTestEntity)1 ApiOperation (io.swagger.annotations.ApiOperation)1 RequiresPermissions (org.apache.shiro.authz.annotation.RequiresPermissions)1