whywhyo
2023-08-01 627a31505ddd81c542a9a2c4b8ed114eee176a54
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZHonorController.java
@@ -51,9 +51,17 @@
    }
    /**
     * 根据id查询
     */
    @GetMapping()
    public AjaxResult listById(Long id){
        return AjaxResult.success(zHonorService.getById(id));
    }
    /**
     * 模板
     */
    @GetMapping("/model")
    @PostMapping("/model")
    public void getModel(HttpServletResponse response){
        ZHonor zHonor = new ZHonor();
        List<ZHonor> emptyList = Collections.singletonList(zHonor);
@@ -66,10 +74,10 @@
     */
//    @PreAuthorize("@ss.hasPermi('system:property:export')")
    @Log(title = "证件、荣誉、资质记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export")
    public void export(HttpServletResponse response, ZHonor zHonor)
    @PostMapping(value = {"/export/{ids}","/export"})
    public void export(HttpServletResponse response,@PathVariable(required = false) Long[] ids)
    {
        List<ZHonor> list = zHonorService.selectCondition(zHonor);
        List<ZHonor> list = zHonorService.selectByIds(ids);
        log.info("导出记录为:{}",list);
        ExcelUtil<ZHonor> util = new ExcelUtil<>(ZHonor.class);
        util.exportExcel(response, list, "证件、荣誉、资质记录数据");