| | |
| | | @Autowired |
| | | private DocumentationMapper documentationMapper; |
| | | @Override |
| | | public List<DocumentationDto> listPage(Page page, Documentation documentation) { |
| | | public IPage<DocumentationDto> listPage(Page page, Documentation documentation) { |
| | | return documentationMapper.listPage(page, documentation); |
| | | } |
| | | |
| | | @Override |
| | | public void export(HttpServletResponse response,Documentation documentation) { |
| | | List<DocumentationDto> list = documentationMapper.listPage(null, documentation); |
| | | IPage<DocumentationDto> list = documentationMapper.listPage(null, documentation); |
| | | ExcelUtil<DocumentationDto> util = new ExcelUtil<>(DocumentationDto.class); |
| | | util.exportExcel(response, list, "文档信息表"); |
| | | util.exportExcel(response, list.getRecords(), "文档信息表"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public List<DocumentationDto> listAll() { |
| | | return documentationMapper.list(); |
| | | } |
| | | } |
| | | |
| | | |