zqy
2024-06-23 a69aafe60ce001834b981778f12fd74d4af77e23
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZPropertyController.java
@@ -49,6 +49,11 @@
        return zPropertyService.selectDataList(zProperty,pageNum,pageSize);
    }
    @GetMapping("/type")
    public AjaxResult listType(){
        return zPropertyService.listType();
    }
    /**
     * 根据id查询
     */
@@ -60,7 +65,7 @@
    /**
     * 模板
     */
    @GetMapping("/model")
    @PostMapping("/model")
    public void getModel(HttpServletResponse response){
        ZProperty zProperty = new ZProperty();
        List<ZProperty> emptyList = Collections.singletonList(zProperty);
@@ -73,8 +78,18 @@
     */
//    @PreAuthorize("@ss.hasPermi('system:property:export')")
    @Log(title = "个人财产记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export/{ids}")
    public void export(HttpServletResponse response,@PathVariable Long[] ids)
    @PostMapping("/export")
    public void export(HttpServletResponse response)
    {
        List<ZProperty> list = zPropertyService.selectByCondition();
        log.info("导出记录为:{}",list);
        ExcelUtil<ZProperty> util = new ExcelUtil<>(ZProperty.class);
        util.exportExcel(response, list, "个人财产记录数据");
    }
    @Log(title = "个人财产记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export1/{ids}")
    public void export1(HttpServletResponse response,@PathVariable Long[] ids)
    {
        List<ZProperty> list = zPropertyService.selectByIds(ids);
        log.info("导出记录为:{}",list);