| | |
| | | import java.util.List; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import com.ruoyi.common.core.text.Convert; |
| | | import com.ruoyi.common.utils.ServletUtils; |
| | | import com.ruoyi.domain.ArchiveAnnotation; |
| | | import com.ruoyi.service.IArchiveAnnotationService; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_NUM; |
| | | import static com.ruoyi.common.core.page.TableSupport.PAGE_SIZE; |
| | | |
| | | /** |
| | | * 【请填写功能名称】Controller |
| | | * |
| | |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:annotation:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(ArchiveAnnotation archiveAnnotation) |
| | | public AjaxResult list(ArchiveAnnotation archiveAnnotation) |
| | | { |
| | | startPage(); |
| | | List<ArchiveAnnotation> list = archiveAnnotationService.selectArchiveAnnotationList(archiveAnnotation); |
| | | return getDataTable(list); |
| | | Integer pageNum = Convert.toInt(ServletUtils.getParameter(PAGE_NUM), 1); |
| | | Integer pageSize = Convert.toInt(ServletUtils.getParameter(PAGE_SIZE), 10); |
| | | AjaxResult list = archiveAnnotationService.selectArchiveAnnotationList(archiveAnnotation, pageNum, pageSize); |
| | | return list; |
| | | } |
| | | |
| | | /** |
| | |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, ArchiveAnnotation archiveAnnotation) |
| | | { |
| | | List<ArchiveAnnotation> list = archiveAnnotationService.selectArchiveAnnotationList(archiveAnnotation); |
| | | List<ArchiveAnnotation> list = archiveAnnotationService.selectArchiveAnnoList(archiveAnnotation); |
| | | ExcelUtil<ArchiveAnnotation> util = new ExcelUtil<ArchiveAnnotation>(ArchiveAnnotation.class); |
| | | util.exportExcel(response, list, "【请填写功能名称】数据"); |
| | | } |