From c94c306dbcf5853e9e68c99d85ff582858670a71 Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Thu, 21 Dec 2023 15:03:38 +0800 Subject: [PATCH] zhang --- .../controller/BPlanEnterpriseController.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java index 474ea14..36b401c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/programManagement/controller/BPlanEnterpriseController.java @@ -58,10 +58,11 @@ public class BPlanEnterpriseController extends BaseController { @Resource private IBAdministrativeDivisionService bAdministrativeDivisionService; + /** * 查询计划企业列表 */ - @ApiOperation(value = "查询计划企业列表",response = BPlanEnterprise.class) + @ApiOperation(value = "查询计划企业列表", response = BPlanEnterprise.class) @GetMapping("/list") public AjaxResult list(BPlanEnterprise bPlanEnterprise) { List list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise); @@ -85,17 +86,14 @@ public class BPlanEnterpriseController extends BaseController { * 首页导出 */ @ApiOperation(value = "首页导出") - @GetMapping("/exportpage") + @PostMapping("/exportpage") public void exportpage(HttpServletResponse response, BPlanEnterprisePageRequest req) { List list = bPlanEnterpriseService.getShouyeList(req); - ExcelUtil util = new ExcelUtil(BPlanEnterPriseTreeResponse. class); + ExcelUtil util = new ExcelUtil(BPlanEnterPriseTreeResponse.class); util.exportExcel(response, list, "行政区划数据"); - - } - /** * 通过主键查询单条数据 * @@ -178,7 +176,7 @@ public class BPlanEnterpriseController extends BaseController { * @return */ @GetMapping("/getZhifa") - @ApiOperation(value = "执法结果-企业详情",response = BPlanEnterpriseZhifaResponse.class) + @ApiOperation(value = "执法结果-企业详情", response = BPlanEnterpriseZhifaResponse.class) public TableDataInfo getZhifa(@Valid checkResultRequest req) { startPage(); return getDataTable(bPlanEnterpriseService.getZhifa(req)); @@ -209,7 +207,7 @@ public class BPlanEnterpriseController extends BaseController { List list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise); for (BPlanEnterprise a : list) { String district = a.getDistrict(); - String countyList = bAdministrativeService.getBydistinct(district); + String countyList = bAdministrativeService.getBydistinct(district); a.setDistrict(countyList); } ExcelUtil util = new ExcelUtil(BPlanEnterprise.class);