|
|
|
@ -216,9 +216,13 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "导出执法结果")
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, checkResultRequest req) {
|
|
|
|
|
if (req.getDistrict() != null && req.getDistrict().contains("000000000")) {
|
|
|
|
|
String result = req.getDistrict().replaceAll("0+$", "");
|
|
|
|
|
req.setDistrict(result);
|
|
|
|
|
}
|
|
|
|
|
List<BPlanEnterpriseZhifaResponse> list = bPlanEnterpriseMapper.getZhifa(req);
|
|
|
|
|
ExcelUtil<BPlanEnterpriseZhifaResponse> util = new ExcelUtil<BPlanEnterpriseZhifaResponse>(BPlanEnterpriseZhifaResponse.class);
|
|
|
|
|
util.exportExcel(response, list, "导出计划管理");
|
|
|
|
|
util.exportExcel(response, list, "导出执法结果");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -232,12 +236,12 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
String district = a.getDistrict();
|
|
|
|
|
String county = district.substring(0, 7);
|
|
|
|
|
String paddedString = String.format("%s%s", county, "000000000");
|
|
|
|
|
List<String> countyList= bAdministrativeService.getBydistinct(district,paddedString);
|
|
|
|
|
List<String> countyList = bAdministrativeService.getBydistinct(district, paddedString);
|
|
|
|
|
String formattedData = String.join("-", countyList);
|
|
|
|
|
a.setDistrict(formattedData);
|
|
|
|
|
}
|
|
|
|
|
ExcelUtil<BPlanEnterprise> util = new ExcelUtil<BPlanEnterprise>(BPlanEnterprise.class);
|
|
|
|
|
util.exportExcel(response,list, "计划管理数据");
|
|
|
|
|
util.exportExcel(response, list, "计划管理数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|