| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.domain.PageParams; |
| | | import com.ruoyi.domain.ZfProperty; |
| | | import com.ruoyi.service.IZfPropertyService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | private IZfPropertyService zfPropertyService; |
| | | |
| | | @GetMapping("/all") |
| | | public TableDataInfo listAll(){ |
| | | startPage(); |
| | | List<ZfProperty> list = zfPropertyService.list(); |
| | | return getDataTable(list); |
| | | public AjaxResult listAll(PageParams pageParams){ |
| | | |
| | | Page<ZfProperty> page = new Page<ZfProperty>(pageParams.getPageNum(),pageParams.getPageSize()); |
| | | Page<ZfProperty> pageResult = zfPropertyService.page(page); |
| | | AjaxResult success = AjaxResult.success(); |
| | | success.put("msg","操作成功"); |
| | | success.put("code",200); |
| | | success.put("data",pageResult.getRecords()); |
| | | success.put("total",pageResult.getTotal()); |
| | | success.put("pageNum",pageResult.getCurrent()); |
| | | success.put("pageSize",pageResult.getSize()); |
| | | return success; |
| | | } |
| | | |
| | | // /** |