fei
1 天以前 9b1b0782ecb77d6ee958774da94606478482b063
ruoyi-admin/src/main/java/com/ruoyi/web/controller/archive/ArchiveAnnotationController.java
@@ -4,6 +4,8 @@
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;
@@ -24,6 +26,9 @@
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
 *
@@ -42,11 +47,12 @@
     */
    @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;
    }
    /**
@@ -57,7 +63,7 @@
    @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, "【请填写功能名称】数据");
    }