Переглянути джерело

导出接口改为post请求

zhonghui 3 роки тому
батько
коміт
db96cd54a2

+ 5 - 8
boman-web-core/src/main/java/com/boman/web/core/controller/VaccineInfoController.java

@@ -47,16 +47,13 @@ public class VaccineInfoController extends BaseController {
         return getDataTable(list);
     }
 
-    /**
-     * 导出疫苗信息列表
-     */
-    @PreAuthorize(hasPermi = "@ss.hasPermi('core:info:export')")
-    @Log(title = "疫苗信息", businessType = BusinessType.EXPORT)
-    @GetMapping("/export")
-    public void export(HttpServletResponse response, VaccineInfoOperation vaccineInfo) throws IOException {
+    @Log(title = "导出疫苗信息", businessType = BusinessType.EXPORT)
+    @PreAuthorize(hasPermi = "core:info:export")
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, VaccineInfoOperation vaccineInfo) throws IOException  {
         List<VaccineInfoOperation> list = vaccineInfoService.selectVaccineInfoList(vaccineInfo);
         ExcelUtil<VaccineInfoOperation> util = new ExcelUtil<VaccineInfoOperation>(VaccineInfoOperation.class);
-        util.exportExcel(response, list, "info");
+        util.exportExcel(response, list, "疫苗信息");
     }
 
     /**