zqy
5 天以前 b02beccf4567068cb47a3f1181a00039456c872d
ruoyi-admin/src/main/java/com/ruoyi/web/controller/zhang/ZfDoctorController.java
@@ -46,6 +46,11 @@
        return zfDoctorService.selectDoctorList(zfDoctor, pageNum, pageSize);
    }
    @GetMapping("/type")
    public AjaxResult listType(){
        return zfDoctorService.listType();
    }
    /**
     * 获取导入模板
     */
@@ -57,25 +62,25 @@
    }
//    /**
//     * 导出家庭小医生记录列表
//     */
////    @PreAuthorize("@ss.hasPermi('system:property:export')")
//    @Log(title = "家庭小医生记录", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, ZfDoctor zfDoctor)
//    {
//        List<ZfDoctor> list = zfDoctorService.selectByCondition(zfDoctor);
//        log.info("导出记录为:{}",list);
//        ExcelUtil<ZfDoctor> util = new ExcelUtil<>(ZfDoctor.class);
//        util.exportExcel(response, list, "家庭小医生记录数据");
//    }
    /**
     * 导出家庭小医生记录列表
     */
//    @PreAuthorize("@ss.hasPermi('system:property:export')")
    @Log(title = "家庭小医生记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export/{ids}")
    @PostMapping("/export")
    public void export(HttpServletResponse response, ZfDoctor zfDoctor)
    {
        List<ZfDoctor> list = zfDoctorService.selectByCondition(zfDoctor);
        log.info("导出记录为:{}",list);
        ExcelUtil<ZfDoctor> util = new ExcelUtil<>(ZfDoctor.class);
        util.exportExcel(response, list, "家庭小医生记录数据");
    }
    /**
     * 导出家庭小医生记录列表
     */
//    @PreAuthorize("@ss.hasPermi('system:property:export')")
    @Log(title = "家庭小医生记录", businessType = BusinessType.EXPORT)
    @PostMapping("/export1/{ids}")
    public void export(HttpServletResponse response, @PathVariable Long[] ids)
    {
        List<ZfDoctor> list = zfDoctorService.selectByIds(ids);