|
|
|
@ -7,8 +7,11 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
|
|
import com.ruoyi.programManagement.entity.BKeyEnterprise;
|
|
|
|
|
import com.ruoyi.programManagement.entity.BPlanEnterprise;
|
|
|
|
|
import com.ruoyi.programManagement.entity.request.*;
|
|
|
|
|
import com.ruoyi.programManagement.entity.request.BPlanEnterprisePageRequest;
|
|
|
|
|
import com.ruoyi.programManagement.entity.request.PlanMxRequest;
|
|
|
|
|
import com.ruoyi.programManagement.entity.request.checkResultRequest;
|
|
|
|
|
import com.ruoyi.programManagement.entity.response.BPlanEnterPriseTreeResponse;
|
|
|
|
|
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseResponse;
|
|
|
|
|
import com.ruoyi.programManagement.entity.response.BPlanEnterpriseZhifaResponse;
|
|
|
|
|
import com.ruoyi.programManagement.mapper.BPlanEnterpriseMapper;
|
|
|
|
|
import com.ruoyi.programManagement.service.BKeyEnterpriseService;
|
|
|
|
@ -58,13 +61,14 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
private IBAdministrativeDivisionService bAdministrativeDivisionService;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询计划企业列表
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "查询计划企业列表",response = BPlanEnterprise.class)
|
|
|
|
|
@ApiOperation(value = "查询计划企业列表", response = BPlanEnterpriseResponse.class)
|
|
|
|
|
@GetMapping("/list")
|
|
|
|
|
public AjaxResult list(BPlanEnterprise bPlanEnterprise) {
|
|
|
|
|
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
|
|
|
|
|
List<BPlanEnterpriseResponse> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
|
|
|
|
|
|
|
|
|
|
return AjaxResult.success(list);
|
|
|
|
|
}
|
|
|
|
@ -88,14 +92,13 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
@GetMapping("/exportpage")
|
|
|
|
|
public void exportpage(HttpServletResponse response, BPlanEnterprisePageRequest 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, "行政区划数据");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通过主键查询单条数据
|
|
|
|
|
*
|
|
|
|
@ -178,7 +181,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));
|
|
|
|
@ -191,11 +194,6 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
@PostMapping("/export")
|
|
|
|
|
public void export(HttpServletResponse response, checkResultRequest req) {
|
|
|
|
|
List<BPlanEnterpriseZhifaResponse> list = bPlanEnterpriseMapper.getZhifa(req);
|
|
|
|
|
for (BPlanEnterpriseZhifaResponse a : list) {
|
|
|
|
|
String district = a.getDistrict();
|
|
|
|
|
String countyList = bAdministrativeService.getBydistinct(district);
|
|
|
|
|
a.setDistrict(countyList);
|
|
|
|
|
}
|
|
|
|
|
ExcelUtil<BPlanEnterpriseZhifaResponse> util = new ExcelUtil<BPlanEnterpriseZhifaResponse>(BPlanEnterpriseZhifaResponse.class);
|
|
|
|
|
util.exportExcel(response, list, "导出执法结果");
|
|
|
|
|
}
|
|
|
|
@ -206,14 +204,9 @@ public class BPlanEnterpriseController extends BaseController {
|
|
|
|
|
@ApiOperation(value = "导出计划管理")
|
|
|
|
|
@PostMapping("/exportplan")
|
|
|
|
|
public void exportplan(HttpServletResponse response, BPlanEnterprise bPlanEnterprise) {
|
|
|
|
|
List<BPlanEnterprise> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
|
|
|
|
|
for (BPlanEnterprise a : list) {
|
|
|
|
|
String district = a.getDistrict();
|
|
|
|
|
String countyList = bAdministrativeService.getBydistinct(district);
|
|
|
|
|
a.setDistrict(countyList);
|
|
|
|
|
}
|
|
|
|
|
ExcelUtil<BPlanEnterprise> util = new ExcelUtil<BPlanEnterprise>(BPlanEnterprise.class);
|
|
|
|
|
util.exportExcel(response, list, "计划管理数据");
|
|
|
|
|
List<BPlanEnterpriseResponse> list = bPlanEnterpriseService.selectBPlanEnterpriseList(bPlanEnterprise);
|
|
|
|
|
ExcelUtil<BPlanEnterpriseResponse> util = new ExcelUtil<BPlanEnterpriseResponse>(BPlanEnterpriseResponse.class);
|
|
|
|
|
util.exportExcel( response,list, "计划管理数据");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|