zhangtao
laozt 1 year ago
parent a69f1ffb65
commit c94c306dbc

@ -58,10 +58,11 @@ public class BPlanEnterpriseController extends BaseController {
@Resource @Resource
private IBAdministrativeDivisionService bAdministrativeDivisionService; private IBAdministrativeDivisionService bAdministrativeDivisionService;
/** /**
* *
*/ */
@ApiOperation(value = "查询计划企业列表",response = BPlanEnterprise.class) @ApiOperation(value = "查询计划企业列表", response = BPlanEnterprise.class)
@GetMapping("/list") @GetMapping("/list")
public AjaxResult list(BPlanEnterprise bPlanEnterprise) { public AjaxResult list(BPlanEnterprise bPlanEnterprise) {
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise); List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
@ -85,17 +86,14 @@ public class BPlanEnterpriseController extends BaseController {
* *
*/ */
@ApiOperation(value = "首页导出") @ApiOperation(value = "首页导出")
@GetMapping("/exportpage") @PostMapping("/exportpage")
public void exportpage(HttpServletResponse response, BPlanEnterprisePageRequest req) { public void exportpage(HttpServletResponse response, BPlanEnterprisePageRequest req) {
List<BPlanEnterPriseTreeResponse> list = bPlanEnterpriseService.getShouyeList(req); List<BPlanEnterPriseTreeResponse> list = bPlanEnterpriseService.getShouyeList(req);
ExcelUtil<BPlanEnterPriseTreeResponse> util = new ExcelUtil<BPlanEnterPriseTreeResponse>(BPlanEnterPriseTreeResponse. class); ExcelUtil<BPlanEnterPriseTreeResponse> util = new ExcelUtil<BPlanEnterPriseTreeResponse>(BPlanEnterPriseTreeResponse.class);
util.exportExcel(response, list, "行政区划数据"); util.exportExcel(response, list, "行政区划数据");
} }
/** /**
* *
* *
@ -178,7 +176,7 @@ public class BPlanEnterpriseController extends BaseController {
* @return * @return
*/ */
@GetMapping("/getZhifa") @GetMapping("/getZhifa")
@ApiOperation(value = "执法结果-企业详情",response = BPlanEnterpriseZhifaResponse.class) @ApiOperation(value = "执法结果-企业详情", response = BPlanEnterpriseZhifaResponse.class)
public TableDataInfo getZhifa(@Valid checkResultRequest req) { public TableDataInfo getZhifa(@Valid checkResultRequest req) {
startPage(); startPage();
return getDataTable(bPlanEnterpriseService.getZhifa(req)); return getDataTable(bPlanEnterpriseService.getZhifa(req));
@ -209,7 +207,7 @@ public class BPlanEnterpriseController extends BaseController {
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise); List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
for (BPlanEnterprise a : list) { for (BPlanEnterprise a : list) {
String district = a.getDistrict(); String district = a.getDistrict();
String countyList = bAdministrativeService.getBydistinct(district); String countyList = bAdministrativeService.getBydistinct(district);
a.setDistrict(countyList); a.setDistrict(countyList);
} }
ExcelUtil<BPlanEnterprise> util = new ExcelUtil<BPlanEnterprise>(BPlanEnterprise.class); ExcelUtil<BPlanEnterprise> util = new ExcelUtil<BPlanEnterprise>(BPlanEnterprise.class);

Loading…
Cancel
Save