init
parent
1c21c9ce69
commit
40070ca34d
|
@ -22,6 +22,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
import io.swagger.annotations.ApiImplicitParams;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
@ -309,10 +311,14 @@ public class AmProblemFiController extends BasesController {
|
||||||
public AjaxResults addCause(@RequestBody @Validated AmProblemFi param) {
|
public AjaxResults addCause(@RequestBody @Validated AmProblemFi param) {
|
||||||
return AjaxResults.success(amProblemFiService.addCause(param));
|
return AjaxResults.success(amProblemFiService.addCause(param));
|
||||||
}
|
}
|
||||||
@ApiOperation(value = "预警问题分类级联数据")
|
@ApiOperation(value = "预警、报警 问题分类级联数据")
|
||||||
@GetMapping("/getAListOfAlerts")
|
@GetMapping("/getAListOfAlerts")
|
||||||
public AjaxResults<List<Map<String, Object>>> getAListOfAlerts() {
|
@ApiImplicitParams({@ApiImplicitParam(name = "type",value = "0为预警,1为报警,不能查询全部,不传递默认为0"),
|
||||||
List<Map<String, Object>> list = amProblemFiService.getAListOfAlerts();
|
@ApiImplicitParam(name = "topType",value = "0:预警,1:不涉及违法问题,2涉及违法问题,不传递默认按照type处理")})
|
||||||
|
public AjaxResults<List<Map<String, Object>>> getAListOfAlerts(
|
||||||
|
@RequestParam(required = false,defaultValue = "0") String type,
|
||||||
|
@RequestParam(required = false) String topType) {
|
||||||
|
List<Map<String, Object>> list = amProblemFiService.getAListOfAlerts( type,topType);
|
||||||
return AjaxResults.success(list);
|
return AjaxResults.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@ import cn.cecep.talroad.domain.BMainProductionInorgGas;
|
||||||
import cn.cecep.talroad.service.IBMainProductionInorgGasService;
|
import cn.cecep.talroad.service.IBMainProductionInorgGasService;
|
||||||
import cn.cecep.talroad.service.IProductionManageService;
|
import cn.cecep.talroad.service.IProductionManageService;
|
||||||
import cn.cecep.talroad.vo.BMainProductionInorgGasVo;
|
import cn.cecep.talroad.vo.BMainProductionInorgGasVo;
|
||||||
import cn.cecep.talroad.vo.BMainProductionOrganizGasVo;
|
|
||||||
import cn.cecep.talroad.vo.query.BMainProductionInorgGasQuery;
|
import cn.cecep.talroad.vo.query.BMainProductionInorgGasQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
@ -62,10 +61,10 @@ public class BMainProductionInorgGasController extends BasesController
|
||||||
@ApiOperation(value = "导出废气无组织排放产治排信息")
|
@ApiOperation(value = "导出废气无组织排放产治排信息")
|
||||||
@Log(title = "废气无组织排放产治排信息", businessType = BusinessType.EXPORT)
|
@Log(title = "废气无组织排放产治排信息", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, BMainProductionInorgGas bMainProductionInorgGas)
|
public void export(HttpServletResponse response,@RequestBody BMainProductionInorgGas bMainProductionInorgGas)
|
||||||
{
|
{
|
||||||
List<BMainProductionInorgGas> list = bMainProductionInorgGasService.selectBMainProductionInorgGasList(bMainProductionInorgGas);
|
List<BMainProductionInorgGas> list = bMainProductionInorgGasService.selectBMainProductionInorgGasList(bMainProductionInorgGas);
|
||||||
ExcelUtil<BMainProductionInorgGas> util = new ExcelUtil<BMainProductionInorgGas>(BMainProductionInorgGas.class);
|
ExcelUtil<BMainProductionInorgGas> util = new ExcelUtil<>(BMainProductionInorgGas.class);
|
||||||
util.exportExcel(response, list, "废气无组织排放产治排信息数据");
|
util.exportExcel(response, list, "废气无组织排放产治排信息数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ import cn.cecep.talroad.vo.query.BMainProductionOrganizGasQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
@ -26,6 +27,8 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import java.security.InvalidParameterException;
|
import java.security.InvalidParameterException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,10 +64,10 @@ public class BMainProductionOrganizGasController extends BasesController
|
||||||
@ApiOperation(value = "导出废气有组织排放产治排信息")
|
@ApiOperation(value = "导出废气有组织排放产治排信息")
|
||||||
@Log(title = "废气有组织排放产治排信息", businessType = BusinessType.EXPORT)
|
@Log(title = "废气有组织排放产治排信息", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, BMainProductionOrganizGas bMainProductionOrganizGas)
|
public void export(HttpServletResponse response,@RequestBody BMainProductionOrganizGas bMainProductionOrganizGas)
|
||||||
{
|
{
|
||||||
List<BMainProductionOrganizGas> list = bMainProductionOrganizGasService.selectBMainProductionOrganizGasList(bMainProductionOrganizGas);
|
List<BMainProductionOrganizGas> list = bMainProductionOrganizGasService.selectBMainProductionOrganizGasList(bMainProductionOrganizGas);
|
||||||
ExcelUtil<BMainProductionOrganizGas> util = new ExcelUtil<BMainProductionOrganizGas>(BMainProductionOrganizGas.class);
|
ExcelUtil<BMainProductionOrganizGas> util = new ExcelUtil<>(BMainProductionOrganizGas.class);
|
||||||
util.exportExcel(response, list, "废气有组织排放产治排信息数据");
|
util.exportExcel(response, list, "废气有组织排放产治排信息数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,6 +110,51 @@ public class BMainProductionOrganizGasController extends BasesController
|
||||||
return toAjax(bMainProductionOrganizGasService.saveOrUpdate(bMainProductionOrganizGas));
|
return toAjax(bMainProductionOrganizGasService.saveOrUpdate(bMainProductionOrganizGas));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气排污节点及治理设施信息")
|
||||||
|
@PostMapping("/pwxk/list")
|
||||||
|
public AjaxResults<IPage<BMainProductionOrganizGasVo.PwxkCzp>> pwxkList(@RequestBody BMainProductionOrganizGasQuery.PwxkCzp query) {
|
||||||
|
Page<BMainProductionOrganizGasVo.PwxkCzp> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<BMainProductionOrganizGasVo.PwxkCzp> list = bMainProductionOrganizGasService.selectPwxkList(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气排污节点及治理设施信息导出")
|
||||||
|
@PostMapping("/export/pwxk/list")
|
||||||
|
public void exportPwxkList(@RequestBody BMainProductionOrganizGasQuery.PwxkCzp query) {
|
||||||
|
Page<BMainProductionOrganizGasVo.PwxkCzp> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<BMainProductionOrganizGasVo.PwxkCzp> list = bMainProductionOrganizGasService.selectPwxkList(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, BMainProductionOrganizGasVo.PwxkCzp.class);
|
||||||
|
ExcelUtil.export(exportMap, "废气排污节点及治理设施信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "污染物种类下拉选")
|
||||||
|
@GetMapping("/pollutionType/options")
|
||||||
|
public AjaxResults<List<String>> pollutionTypeOptions() {
|
||||||
|
List<BMainProductionOrganizGas> list = bMainProductionOrganizGasService.list(new QueryWrapper<BMainProductionOrganizGas>()
|
||||||
|
.select("pollution_type")
|
||||||
|
.isNotNull("pollution_type")
|
||||||
|
.groupBy("pollution_type")
|
||||||
|
.orderByAsc("pollution_type")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(BMainProductionOrganizGas::getPollutionType).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "治理设施工艺下拉选")
|
||||||
|
@GetMapping("/cepFacilityCraft/options")
|
||||||
|
public AjaxResults<List<String>> cepFacilityCraftOptions() {
|
||||||
|
List<BMainProductionOrganizGas> list = bMainProductionOrganizGasService.list(new QueryWrapper<BMainProductionOrganizGas>()
|
||||||
|
.select("cep_facility_craft")
|
||||||
|
.isNotNull("cep_facility_craft")
|
||||||
|
.groupBy("cep_facility_craft")
|
||||||
|
.orderByAsc("cep_facility_craft")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(BMainProductionOrganizGas::getCepFacilityCraft).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除废气有组织排放产治排信息
|
* 删除废气有组织排放产治排信息
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -10,12 +10,12 @@ import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
import cn.cecep.talroad.domain.BMainProductionWater;
|
import cn.cecep.talroad.domain.BMainProductionWater;
|
||||||
import cn.cecep.talroad.service.IBMainProductionWaterService;
|
import cn.cecep.talroad.service.IBMainProductionWaterService;
|
||||||
import cn.cecep.talroad.service.IProductionManageService;
|
import cn.cecep.talroad.service.IProductionManageService;
|
||||||
import cn.cecep.talroad.vo.BMainProductionOrganizGasVo;
|
|
||||||
import cn.cecep.talroad.vo.BMainProductionWaterVo;
|
import cn.cecep.talroad.vo.BMainProductionWaterVo;
|
||||||
import cn.cecep.talroad.vo.query.BMainProductionWaterQuery;
|
import cn.cecep.talroad.vo.query.BMainProductionWaterQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
@ -27,6 +27,8 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import java.security.InvalidParameterException;
|
import java.security.InvalidParameterException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -62,7 +64,7 @@ public class BMainProductionWaterController extends BasesController
|
||||||
@ApiOperation(value = "导出废水排放产治排信息")
|
@ApiOperation(value = "导出废水排放产治排信息")
|
||||||
@Log(title = "废水排放产治排信息", businessType = BusinessType.EXPORT)
|
@Log(title = "废水排放产治排信息", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, BMainProductionWater bMainProductionWater)
|
public void export(HttpServletResponse response, @RequestBody BMainProductionWater bMainProductionWater)
|
||||||
{
|
{
|
||||||
List<BMainProductionWater> list = bMainProductionWaterService.selectBMainProductionWaterList(bMainProductionWater);
|
List<BMainProductionWater> list = bMainProductionWaterService.selectBMainProductionWaterList(bMainProductionWater);
|
||||||
ExcelUtil<BMainProductionWater> util = new ExcelUtil<BMainProductionWater>(BMainProductionWater.class);
|
ExcelUtil<BMainProductionWater> util = new ExcelUtil<BMainProductionWater>(BMainProductionWater.class);
|
||||||
|
@ -119,6 +121,51 @@ public class BMainProductionWaterController extends BasesController
|
||||||
return toAjax(bMainProductionWaterService.removeByIds(Arrays.asList(ids)));
|
return toAjax(bMainProductionWaterService.removeByIds(Arrays.asList(ids)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水类别及治理设施信息")
|
||||||
|
@PostMapping("/pwxk/list")
|
||||||
|
public AjaxResults<IPage<BMainProductionWaterVo.PwxkCzp>> pwxkList(@RequestBody BMainProductionWaterQuery.PwxkCzp query) {
|
||||||
|
Page<BMainProductionWaterVo.PwxkCzp> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<BMainProductionWaterVo.PwxkCzp> list = bMainProductionWaterService.selectPwxkList(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水类别及治理设施信息导出")
|
||||||
|
@PostMapping("/export/pwxk/list")
|
||||||
|
public void exportPwxkList(@RequestBody BMainProductionWaterQuery.PwxkCzp query) {
|
||||||
|
Page<BMainProductionWaterVo.PwxkCzp> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<BMainProductionWaterVo.PwxkCzp> list = bMainProductionWaterService.selectPwxkList(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, BMainProductionWaterVo.PwxkCzp.class);
|
||||||
|
ExcelUtil.export(exportMap, "废水类别及治理设施信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "污染物种类下拉选")
|
||||||
|
@GetMapping("/pollutionType/options")
|
||||||
|
public AjaxResults<List<String>> pollutionTypeOptions() {
|
||||||
|
List<BMainProductionWater> list = bMainProductionWaterService.list(new QueryWrapper<BMainProductionWater>()
|
||||||
|
.select("pollution_type")
|
||||||
|
.isNotNull("pollution_type")
|
||||||
|
.groupBy("pollution_type")
|
||||||
|
.orderByAsc("pollution_type")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(BMainProductionWater::getPollutionType).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "治理设施工艺下拉选")
|
||||||
|
@GetMapping("/cepFacilityCraft/options")
|
||||||
|
public AjaxResults<List<String>> cepFacilityCraftOptions() {
|
||||||
|
List<BMainProductionWater> list = bMainProductionWaterService.list(new QueryWrapper<BMainProductionWater>()
|
||||||
|
.select("cep_facility_craft")
|
||||||
|
.isNotNull("cep_facility_craft")
|
||||||
|
.groupBy("cep_facility_craft")
|
||||||
|
.orderByAsc("cep_facility_craft")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(BMainProductionWater::getCepFacilityCraft).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "获取弹框数据(数据趋势、视频监控)")
|
@ApiOperation(value = "获取弹框数据(数据趋势、视频监控)")
|
||||||
@GetMapping("/frameData")
|
@GetMapping("/frameData")
|
||||||
public AjaxResults<IProductionManageService.FrameDataVo> frameData(
|
public AjaxResults<IProductionManageService.FrameDataVo> frameData(
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class BMainSolidHazardousController extends BasesController
|
||||||
@ApiOperation(value = "导出固危废贮存信息")
|
@ApiOperation(value = "导出固危废贮存信息")
|
||||||
@Log(title = "固危废贮存信息", businessType = BusinessType.EXPORT)
|
@Log(title = "固危废贮存信息", businessType = BusinessType.EXPORT)
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, BMainSolidHazardous bMainSolidHazardous)
|
public void export(HttpServletResponse response, @RequestBody BMainSolidHazardous bMainSolidHazardous)
|
||||||
{
|
{
|
||||||
List<BMainSolidHazardous> list = bMainSolidHazardousService.selectBMainSolidHazardousList(bMainSolidHazardous);
|
List<BMainSolidHazardous> list = bMainSolidHazardousService.selectBMainSolidHazardousList(bMainSolidHazardous);
|
||||||
ExcelUtil<BMainSolidHazardous> util = new ExcelUtil<BMainSolidHazardous>(BMainSolidHazardous.class);
|
ExcelUtil<BMainSolidHazardous> util = new ExcelUtil<BMainSolidHazardous>(BMainSolidHazardous.class);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package cn.cecep.talroad.controller;
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
//import cn.cecep.talroad.common.core.utils.poi.ExcelUtilNew;
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtilNew;
|
||||||
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
import cn.cecep.talroad.domain.BStatTableQueryInfo;
|
import cn.cecep.talroad.domain.BStatTableQueryInfo;
|
||||||
import cn.cecep.talroad.service.BStatTablePwxkWaterAndOtherService;
|
import cn.cecep.talroad.service.BStatTablePwxkWaterAndOtherService;
|
||||||
|
@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@Api(value = "排污许可执行分析废水固废和其他",tags = "排污许可停机分析废水固废和其他")
|
@Api(value = "排污许可执行分析废水固废和其他",tags = "排污许可停机分析废水固废和其他")
|
||||||
|
@ -66,7 +67,6 @@ public class BStatTablePwxkWaterAndOtherController {
|
||||||
@ApiOperation(value = "查询生产设施信息")
|
@ApiOperation(value = "查询生产设施信息")
|
||||||
@PostMapping("/selectProductionFacilities")
|
@PostMapping("/selectProductionFacilities")
|
||||||
public AjaxResults<IPage<BStatTablePwxkProductionFacilitiesVo>> selectProductionFacilities(@RequestBody BStatTablepPwxkWaterQuery query) {
|
public AjaxResults<IPage<BStatTablePwxkProductionFacilitiesVo>> selectProductionFacilities(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
//todo 待开发
|
|
||||||
return service.selectProductionFacilities(query);
|
return service.selectProductionFacilities(query);
|
||||||
}
|
}
|
||||||
@ApiOperation(value = "查询产品信息")
|
@ApiOperation(value = "查询产品信息")
|
||||||
|
@ -94,7 +94,26 @@ public class BStatTablePwxkWaterAndOtherController {
|
||||||
public AjaxResults<IPage<BMainPollDisNoiseRegulationVo>> selectBMainPollDisNoiseRegulation(@RequestBody BStatTablepPwxkWaterQuery query) {
|
public AjaxResults<IPage<BMainPollDisNoiseRegulationVo>> selectBMainPollDisNoiseRegulation(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
return service.selectBMainPollDisNoiseRegulation(query);
|
return service.selectBMainPollDisNoiseRegulation(query);
|
||||||
}
|
}
|
||||||
|
@ApiOperation(value = "查询原辅料")
|
||||||
|
@PostMapping("/selectMaterial")
|
||||||
|
public AjaxResults<IPage<BStatTablePwxkRawMaterialVo>> selectMaterial(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
|
return service.selectMaterial(query);
|
||||||
|
}
|
||||||
|
@ApiOperation(value = "查询燃料")
|
||||||
|
@PostMapping("/selectFuel")
|
||||||
|
public AjaxResults<IPage<BStatTablePwxkFuelVo>> selectFuel(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
|
return service.selectFuel(query);
|
||||||
|
}
|
||||||
|
@ApiOperation(value = "查询锅炉行业气体燃料信息")
|
||||||
|
@PostMapping("/selectBoilerFuelGas")
|
||||||
|
public AjaxResults<IPage<BStatTablePwxkBoilerFuelGasVo>> selectBoilerFuelGas(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
|
return service.selectBoilerFuelGas(query);
|
||||||
|
}
|
||||||
|
@ApiOperation(value = "查询锅炉行业固体液体燃料信息")
|
||||||
|
@PostMapping("/selectBoilerFuelSolidLiquid")
|
||||||
|
public AjaxResults<IPage<BStatTablePwxkBoilerFuelSolidLiquidVo>> selectBoilerFuelSolidLiquid(@RequestBody BStatTablepPwxkWaterQuery query) {
|
||||||
|
return service.selectBoilerFuelSolidLiquid(query);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation("保存查询条件")
|
@ApiOperation("保存查询条件")
|
||||||
@PostMapping("/saveQueryContent")
|
@PostMapping("/saveQueryContent")
|
||||||
|
@ -164,27 +183,29 @@ public class BStatTablePwxkWaterAndOtherController {
|
||||||
ExcelUtil<BMainHazardousSolidWasteVo> excelUtil = new ExcelUtil<>(BMainHazardousSolidWasteVo.class);
|
ExcelUtil<BMainHazardousSolidWasteVo> excelUtil = new ExcelUtil<>(BMainHazardousSolidWasteVo.class);
|
||||||
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出污水处理厂进水监测要求信息");
|
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出污水处理厂进水监测要求信息");
|
||||||
}
|
}
|
||||||
// @ApiOperation(value = "导出固废自行贮存和处置利用信息")
|
@ApiOperation(value = "导出固废自行贮存和处置利用信息")
|
||||||
// @PostMapping("/exportHazardousSolidWasteFa")
|
@PostMapping("/exportHazardousSolidWasteFa")
|
||||||
// public void exportHazardousSolidWasteFa(@RequestBody BStatTablepPwxkWaterQuery query,
|
public void exportHazardousSolidWasteFa(@RequestBody BStatTablepPwxkWaterQuery query,
|
||||||
// HttpServletResponse response) {
|
HttpServletResponse response) {
|
||||||
// query.setPageNum(1);
|
query.setPageNum(1);
|
||||||
// query.setPageSize(Integer.MAX_VALUE);
|
query.setPageSize(Integer.MAX_VALUE);
|
||||||
// AjaxResults<IPage<BMainHazardousSolidWasteFaVo>> iPageAjaxResults = service.selectHazardousSolidWasteFa(query);
|
AjaxResults<IPage<BMainHazardousSolidWasteFaVo>> iPageAjaxResults = service.selectHazardousSolidWasteFa(query);
|
||||||
// System.out.println(iPageAjaxResults.getData().getRecords());
|
System.out.println(iPageAjaxResults.getData().getRecords());
|
||||||
// ExcelUtilNew<BMainHazardousSolidWasteFaVo> excelUtil = new ExcelUtilNew<>(BMainHazardousSolidWasteFaVo.class);
|
ExcelUtilNew<BMainHazardousSolidWasteFaVo> excelUtil = new ExcelUtilNew<>(BMainHazardousSolidWasteFaVo.class);
|
||||||
// excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出固废自行贮存和处置利用信息");
|
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出固废自行贮存和处置利用信息");
|
||||||
// }
|
}
|
||||||
// @ApiOperation(value = "导出生产设施信息")
|
@ApiOperation(value = "导出生产设施信息")
|
||||||
// @PostMapping("/exportProductionFacilities")
|
@PostMapping("/exportProductionFacilities")
|
||||||
// public void exportProductionFacilities(@RequestBody BStatTablepPwxkWaterQuery query,
|
public void exportProductionFacilities(@RequestBody BStatTablepPwxkWaterQuery query,
|
||||||
// HttpServletResponse response) {
|
HttpServletResponse response) {
|
||||||
// query.setPageNum(1);
|
query.setPageNum(1);
|
||||||
// query.setPageSize(Integer.MAX_VALUE);
|
query.setPageSize(Integer.MAX_VALUE);
|
||||||
// AjaxResults<IPage<BStatTablePwxkProductionFacilitiesVo>> iPageAjaxResults = service.selectProductionFacilities(query);
|
AjaxResults<IPage<BStatTablePwxkProductionFacilitiesVo>> iPageAjaxResults = service.selectProductionFacilities(query);
|
||||||
// ExcelUtilNew<BStatTablePwxkProductionFacilitiesVo> excelUtil = new ExcelUtilNew<>(BStatTablePwxkProductionFacilitiesVo.class);
|
// ExcelUtilNew<BStatTablePwxkProductionFacilitiesVo> excelUtil = new ExcelUtilNew<>(BStatTablePwxkProductionFacilitiesVo.class);
|
||||||
// excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出生产设施信息");
|
// excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出生产设施信息");
|
||||||
// }
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(iPageAjaxResults.getData().getRecords(), BStatTablePwxkProductionFacilitiesVo.class);
|
||||||
|
ExcelUtil.export(exportMap,"导出生产设施信息");
|
||||||
|
}
|
||||||
@ApiOperation(value = "导出产品信息")
|
@ApiOperation(value = "导出产品信息")
|
||||||
@PostMapping("/exportProducts")
|
@PostMapping("/exportProducts")
|
||||||
public void exportProducts(@RequestBody BStatTablepPwxkWaterQuery query, HttpServletResponse response) {
|
public void exportProducts(@RequestBody BStatTablepPwxkWaterQuery query, HttpServletResponse response) {
|
||||||
|
@ -237,4 +258,24 @@ public class BStatTablePwxkWaterAndOtherController {
|
||||||
ExcelUtil<BMainPollDisNoiseRegulationVo> excelUtil = new ExcelUtil<>(BMainPollDisNoiseRegulationVo.class);
|
ExcelUtil<BMainPollDisNoiseRegulationVo> excelUtil = new ExcelUtil<>(BMainPollDisNoiseRegulationVo.class);
|
||||||
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出改正规定");
|
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"导出改正规定");
|
||||||
}
|
}
|
||||||
|
@ApiOperation(value = "导出锅炉行业气体燃料信息")
|
||||||
|
@PostMapping("/exportBoilerFuelGas")
|
||||||
|
public void exportBoilerFuelGas(@RequestBody BStatTablepPwxkWaterQuery query, HttpServletResponse response) {
|
||||||
|
query.setPageNum(1);
|
||||||
|
query.setPageSize(Integer.MAX_VALUE);
|
||||||
|
query.setExportOperate(true);
|
||||||
|
AjaxResults<IPage<BStatTablePwxkBoilerFuelGasVo>> iPageAjaxResults = service.selectBoilerFuelGas(query);
|
||||||
|
ExcelUtil<BStatTablePwxkBoilerFuelGasVo> excelUtil = new ExcelUtil<>(BStatTablePwxkBoilerFuelGasVo.class);
|
||||||
|
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"锅炉行业气体燃料信息");
|
||||||
|
}
|
||||||
|
@ApiOperation(value = "导出锅炉行业固体液体燃料信息")
|
||||||
|
@PostMapping("/exportBoilerFuelSolidLiquid")
|
||||||
|
public void exportBoilerFuelSolidLiquid(@RequestBody BStatTablepPwxkWaterQuery query, HttpServletResponse response) {
|
||||||
|
query.setPageNum(1);
|
||||||
|
query.setPageSize(Integer.MAX_VALUE);
|
||||||
|
query.setExportOperate(true);
|
||||||
|
AjaxResults<IPage<BStatTablePwxkBoilerFuelSolidLiquidVo>> iPageAjaxResults = service.selectBoilerFuelSolidLiquid(query);
|
||||||
|
ExcelUtil<BStatTablePwxkBoilerFuelSolidLiquidVo> excelUtil = new ExcelUtil<>(BStatTablePwxkBoilerFuelSolidLiquidVo.class);
|
||||||
|
excelUtil.exportExcel(response,iPageAjaxResults.getData().getRecords(),"锅炉行业固体液体燃料信息");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,122 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgGasEmissionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmission;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgGasEmissionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgGasEmissionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--有组织废气污染物排放浓度监测数据Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/gas/emission")
|
||||||
|
public class BStatTableZxbgGasEmissionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgGasEmissionService bStatTableZxbgGasEmissionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--有组织废气污染物排放浓度监测数据列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgGasEmission>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgGasEmissionService.selectBStatTableZxbgGasEmissionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--有组织废气污染物排放浓度监测数据列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgGasEmission>> iPageAjaxResults = bStatTableZxbgGasEmissionService.selectBStatTableZxbgGasEmissionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgGasEmission> util = new ExcelUtil<BStatTableZxbgGasEmission>(BStatTableZxbgGasEmission.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--有组织废气污染物排放浓度监测数据详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--有组织废气污染物排放浓度监测数据详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgGasEmission> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgGasEmissionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--有组织废气污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgGasEmission bStatTableZxbgGasEmission) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionService.save(bStatTableZxbgGasEmission));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--有组织废气污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgGasEmissionVo bStatTableZxbgGasEmissionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgGasEmission bStatTableZxbgGasEmission = bStatTableZxbgGasEmissionService.getById(bStatTableZxbgGasEmissionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmission)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgGasEmissionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgGasEmissionVo,bStatTableZxbgGasEmission);
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionService.saveOrUpdate(bStatTableZxbgGasEmission));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--有组织废气污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--有组织废气污染物排放浓度监测数据")
|
||||||
|
@RequiresPermissions("talroad:emission:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放浓度监测数据", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmission;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgGasEmissionSpeedQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionSpeed;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgGasEmissionSpeedVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgGasEmissionSpeedService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--有组织废气污染物排放速率监测Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/speed")
|
||||||
|
public class BStatTableZxbgGasEmissionSpeedController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgGasEmissionSpeedService bStatTableZxbgGasEmissionSpeedService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--有组织废气污染物排放速率监测列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgGasEmissionSpeed>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgGasEmissionSpeedService.selectBStatTableZxbgGasEmissionSpeedListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--有组织废气污染物排放速率监测列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放速率监测", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response,@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgGasEmissionSpeed>> iPageAjaxResults = bStatTableZxbgGasEmissionSpeedService.selectBStatTableZxbgGasEmissionSpeedListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgGasEmissionSpeed> util = new ExcelUtil<BStatTableZxbgGasEmissionSpeed>(BStatTableZxbgGasEmissionSpeed.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--有组织废气污染物排放速率监测数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--有组织废气污染物排放速率监测详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--有组织废气污染物排放速率监测详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgGasEmissionSpeed> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgGasEmissionSpeedService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--有组织废气污染物排放速率监测
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放速率监测", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgGasEmissionSpeed bStatTableZxbgGasEmissionSpeed) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionSpeedService.save(bStatTableZxbgGasEmissionSpeed));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--有组织废气污染物排放速率监测
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放速率监测", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgGasEmissionSpeedVo bStatTableZxbgGasEmissionSpeedVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionSpeedVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionSpeedVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgGasEmissionSpeed bStatTableZxbgGasEmissionSpeed = bStatTableZxbgGasEmissionSpeedService.getById(bStatTableZxbgGasEmissionSpeedVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionSpeed)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgGasEmissionSpeedVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgGasEmissionSpeedVo,bStatTableZxbgGasEmissionSpeed);
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionSpeedService.saveOrUpdate(bStatTableZxbgGasEmissionSpeed));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--有组织废气污染物排放速率监测
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--有组织废气污染物排放速率监测")
|
||||||
|
@RequiresPermissions("talroad:speed:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--有组织废气污染物排放速率监测", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionSpeedService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,122 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgGasEmissionStatisticsQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgGasEmissionStatisticsVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgGasEmissionStatisticsService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/statistics")
|
||||||
|
public class BStatTableZxbgGasEmissionStatisticsController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgGasEmissionStatisticsService bStatTableZxbgGasEmissionStatisticsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgGasEmissionStatistics>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgGasEmissionStatisticsService.selectBStatTableZxbgGasEmissionStatisticsListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@Log(title = "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgGasEmissionStatistics>> iPageAjaxResults = bStatTableZxbgGasEmissionStatisticsService.selectBStatTableZxbgGasEmissionStatisticsListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgGasEmissionStatistics> util = new ExcelUtil<BStatTableZxbgGasEmissionStatistics>(BStatTableZxbgGasEmissionStatistics.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgGasEmissionStatistics> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgGasEmissionStatisticsService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@Log(title = "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgGasEmissionStatistics bStatTableZxbgGasEmissionStatistics) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionStatisticsService.save(bStatTableZxbgGasEmissionStatistics));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@Log(title = "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgGasEmissionStatisticsVo bStatTableZxbgGasEmissionStatisticsVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionStatisticsVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionStatisticsVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgGasEmissionStatistics bStatTableZxbgGasEmissionStatistics = bStatTableZxbgGasEmissionStatisticsService.getById(bStatTableZxbgGasEmissionStatisticsVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGasEmissionStatistics)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgGasEmissionStatisticsVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgGasEmissionStatisticsVo,bStatTableZxbgGasEmissionStatistics);
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionStatisticsService.saveOrUpdate(bStatTableZxbgGasEmissionStatistics));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计")
|
||||||
|
@RequiresPermissions("talroad:statistics:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--无组织废气污染物排放浓度监测数据统计", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgGasEmissionStatisticsService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgGtFuelQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGtFuel;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgGtFuelVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgGtFuelService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--钢铁-燃料分析Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/gt/fuel")
|
||||||
|
public class BStatTableZxbgGtFuelController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgGtFuelService bStatTableZxbgGtFuelService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--钢铁-燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgGtFuel>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgGtFuelService.selectBStatTableZxbgGtFuelListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--钢铁-燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-燃料分析", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgGtFuel>> iPageAjaxResults = bStatTableZxbgGtFuelService.selectBStatTableZxbgGtFuelListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgGtFuel> util = new ExcelUtil<BStatTableZxbgGtFuel>(BStatTableZxbgGtFuel.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--钢铁-燃料分析数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--钢铁-燃料分析详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--钢铁-燃料分析详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgGtFuel> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgGtFuelService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--钢铁-燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-燃料分析", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgGtFuel bStatTableZxbgGtFuel) {
|
||||||
|
return toAjax(bStatTableZxbgGtFuelService.save(bStatTableZxbgGtFuel));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--钢铁-燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-燃料分析", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgGtFuelVo bStatTableZxbgGtFuelVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtFuelVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtFuelVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgGtFuel bStatTableZxbgGtFuel = bStatTableZxbgGtFuelService.getById(bStatTableZxbgGtFuelVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtFuel)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgGtFuelVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgGtFuelVo,bStatTableZxbgGtFuel);
|
||||||
|
return toAjax(bStatTableZxbgGtFuelService.saveOrUpdate(bStatTableZxbgGtFuel));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--钢铁-燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--钢铁-燃料分析")
|
||||||
|
@RequiresPermissions("talroad:fuel:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-燃料分析", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgGtFuelService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgGtProductionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGtProduction;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgGtProductionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgGtProductionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--钢铁-生产单元运行情况Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/production")
|
||||||
|
public class BStatTableZxbgGtProductionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgGtProductionService bStatTableZxbgGtProductionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--钢铁-生产单元运行情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgGtProduction>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgGtProductionService.selectBStatTableZxbgGtProductionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--钢铁-生产单元运行情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-生产单元运行情况", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgGtProduction>> iPageAjaxResults = bStatTableZxbgGtProductionService.selectBStatTableZxbgGtProductionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgGtProduction> util = new ExcelUtil<BStatTableZxbgGtProduction>(BStatTableZxbgGtProduction.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--钢铁-生产单元运行情况数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--钢铁-生产单元运行情况详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--钢铁-生产单元运行情况详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgGtProduction> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgGtProductionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--钢铁-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-生产单元运行情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgGtProduction bStatTableZxbgGtProduction) {
|
||||||
|
return toAjax(bStatTableZxbgGtProductionService.save(bStatTableZxbgGtProduction));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--钢铁-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-生产单元运行情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgGtProductionVo bStatTableZxbgGtProductionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtProductionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtProductionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgGtProduction bStatTableZxbgGtProduction = bStatTableZxbgGtProductionService.getById(bStatTableZxbgGtProductionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgGtProduction)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgGtProductionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgGtProductionVo,bStatTableZxbgGtProduction);
|
||||||
|
return toAjax(bStatTableZxbgGtProductionService.saveOrUpdate(bStatTableZxbgGtProduction));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--钢铁-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--钢铁-生产单元运行情况")
|
||||||
|
@RequiresPermissions("talroad:production:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--钢铁-生产单元运行情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgGtProductionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmission;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdFuelAnalysisQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdFuelAnalysis;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdFuelAnalysisVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdFuelAnalysisService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电燃料分析Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/hd/analysis")
|
||||||
|
public class BStatTableZxbgHdFuelAnalysisController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdFuelAnalysisService bStatTableZxbgHdFuelAnalysisService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdFuelAnalysis>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdFuelAnalysisService.selectBStatTableZxbgHdFuelAnalysisListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电燃料分析", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdFuelAnalysis>> iPageAjaxResults = bStatTableZxbgHdFuelAnalysisService.selectBStatTableZxbgHdFuelAnalysisListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdFuelAnalysis> util = new ExcelUtil<BStatTableZxbgHdFuelAnalysis>(BStatTableZxbgHdFuelAnalysis.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电燃料分析数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电燃料分析详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电燃料分析详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdFuelAnalysis> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdFuelAnalysisService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电燃料分析", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdFuelAnalysis bStatTableZxbgHdFuelAnalysis) {
|
||||||
|
return toAjax(bStatTableZxbgHdFuelAnalysisService.save(bStatTableZxbgHdFuelAnalysis));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电燃料分析", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdFuelAnalysisVo bStatTableZxbgHdFuelAnalysisVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdFuelAnalysisVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdFuelAnalysisVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdFuelAnalysis bStatTableZxbgHdFuelAnalysis = bStatTableZxbgHdFuelAnalysisService.getById(bStatTableZxbgHdFuelAnalysisVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdFuelAnalysis)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdFuelAnalysisVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdFuelAnalysisVo,bStatTableZxbgHdFuelAnalysis);
|
||||||
|
return toAjax(bStatTableZxbgHdFuelAnalysisService.saveOrUpdate(bStatTableZxbgHdFuelAnalysis));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电燃料分析")
|
||||||
|
@RequiresPermissions("talroad:analysis:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电燃料分析", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdFuelAnalysisService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdGasPollutionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdGasPollution;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdGasPollutionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdGasPollutionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电废气污染治理设施正常情况Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/hd/gas")
|
||||||
|
public class BStatTableZxbgHdGasPollutionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdGasPollutionService bStatTableZxbgHdGasPollutionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电废气污染治理设施正常情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdGasPollution>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdGasPollutionService.selectBStatTableZxbgHdGasPollutionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电废气污染治理设施正常情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废气污染治理设施正常情况", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdGasPollution>> iPageAjaxResults = bStatTableZxbgHdGasPollutionService.selectBStatTableZxbgHdGasPollutionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdGasPollution> util = new ExcelUtil<BStatTableZxbgHdGasPollution>(BStatTableZxbgHdGasPollution.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电废气污染治理设施正常情况数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电废气污染治理设施正常情况详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电废气污染治理设施正常情况详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdGasPollution> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdGasPollutionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电废气污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废气污染治理设施正常情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdGasPollution bStatTableZxbgHdGasPollution) {
|
||||||
|
return toAjax(bStatTableZxbgHdGasPollutionService.save(bStatTableZxbgHdGasPollution));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电废气污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废气污染治理设施正常情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdGasPollutionVo bStatTableZxbgHdGasPollutionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGasPollutionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGasPollutionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdGasPollution bStatTableZxbgHdGasPollution = bStatTableZxbgHdGasPollutionService.getById(bStatTableZxbgHdGasPollutionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGasPollution)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdGasPollutionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdGasPollutionVo,bStatTableZxbgHdGasPollution);
|
||||||
|
return toAjax(bStatTableZxbgHdGasPollutionService.saveOrUpdate(bStatTableZxbgHdGasPollution));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电废气污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电废气污染治理设施正常情况")
|
||||||
|
@RequiresPermissions("talroad:pollution:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废气污染治理设施正常情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdGasPollutionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmission;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdGtBasicQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdGtBasic;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdGtBasicVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdGtBasicService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电、钢铁基本信息Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/basic")
|
||||||
|
public class BStatTableZxbgHdGtBasicController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdGtBasicService bStatTableZxbgHdGtBasicService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电、钢铁基本信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdGtBasic>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdGtBasicService.selectBStatTableZxbgHdGtBasicListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电、钢铁基本信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁基本信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdGtBasic>> iPageAjaxResults = bStatTableZxbgHdGtBasicService.selectBStatTableZxbgHdGtBasicListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdGtBasic> util = new ExcelUtil<BStatTableZxbgHdGtBasic>(BStatTableZxbgHdGtBasic.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电、钢铁基本信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电、钢铁基本信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电、钢铁基本信息详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdGtBasic> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdGtBasicService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电、钢铁基本信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁基本信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdGtBasic bStatTableZxbgHdGtBasic) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtBasicService.save(bStatTableZxbgHdGtBasic));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电、钢铁基本信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁基本信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdGtBasicVo bStatTableZxbgHdGtBasicVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtBasicVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtBasicVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdGtBasic bStatTableZxbgHdGtBasic = bStatTableZxbgHdGtBasicService.getById(bStatTableZxbgHdGtBasicVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtBasic)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdGtBasicVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdGtBasicVo,bStatTableZxbgHdGtBasic);
|
||||||
|
return toAjax(bStatTableZxbgHdGtBasicService.saveOrUpdate(bStatTableZxbgHdGtBasic));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电、钢铁基本信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电、钢铁基本信息")
|
||||||
|
@RequiresPermissions("talroad:basic:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁基本信息", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtBasicService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdGtFuelQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdGtFuel;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdGtFuelVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdGtFuelService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电、钢铁燃料信息Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/hd/fuel")
|
||||||
|
public class BStatTableZxbgHdGtFuelController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdGtFuelService bStatTableZxbgHdGtFuelService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电、钢铁燃料信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdGtFuel>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdGtFuelService.selectBStatTableZxbgHdGtFuelListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电、钢铁燃料信息列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁燃料信息", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdGtFuel>> iPageAjaxResults = bStatTableZxbgHdGtFuelService.selectBStatTableZxbgHdGtFuelListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdGtFuel> util = new ExcelUtil<BStatTableZxbgHdGtFuel>(BStatTableZxbgHdGtFuel.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电、钢铁燃料信息数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电、钢铁燃料信息详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电、钢铁燃料信息详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdGtFuel> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdGtFuelService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电、钢铁燃料信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁燃料信息", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdGtFuel bStatTableZxbgHdGtFuel) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtFuelService.save(bStatTableZxbgHdGtFuel));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电、钢铁燃料信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁燃料信息", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdGtFuelVo bStatTableZxbgHdGtFuelVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtFuelVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtFuelVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdGtFuel bStatTableZxbgHdGtFuel = bStatTableZxbgHdGtFuelService.getById(bStatTableZxbgHdGtFuelVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtFuel)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdGtFuelVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdGtFuelVo,bStatTableZxbgHdGtFuel);
|
||||||
|
return toAjax(bStatTableZxbgHdGtFuelService.saveOrUpdate(bStatTableZxbgHdGtFuel));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电、钢铁燃料信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电、钢铁燃料信息")
|
||||||
|
@RequiresPermissions("talroad:fuel:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁燃料信息", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtFuelService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdGtInvestmentQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdGtInvestment;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdGtInvestmentVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdGtInvestmentService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/investment")
|
||||||
|
public class BStatTableZxbgHdGtInvestmentController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdGtInvestmentService bStatTableZxbgHdGtInvestmentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdGtInvestment>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdGtInvestmentService.selectBStatTableZxbgHdGtInvestmentListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdGtInvestment>> iPageAjaxResults = bStatTableZxbgHdGtInvestmentService.selectBStatTableZxbgHdGtInvestmentListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdGtInvestment> util = new ExcelUtil<BStatTableZxbgHdGtInvestment>(BStatTableZxbgHdGtInvestment.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdGtInvestment> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdGtInvestmentService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdGtInvestment bStatTableZxbgHdGtInvestment) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtInvestmentService.save(bStatTableZxbgHdGtInvestment));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdGtInvestmentVo bStatTableZxbgHdGtInvestmentVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtInvestmentVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtInvestmentVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdGtInvestment bStatTableZxbgHdGtInvestment = bStatTableZxbgHdGtInvestmentService.getById(bStatTableZxbgHdGtInvestmentVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdGtInvestment)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdGtInvestmentVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdGtInvestmentVo,bStatTableZxbgHdGtInvestment);
|
||||||
|
return toAjax(bStatTableZxbgHdGtInvestmentService.saveOrUpdate(bStatTableZxbgHdGtInvestment));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况")
|
||||||
|
@RequiresPermissions("talroad:investment:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电、钢铁污染治理设施计划投资情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdGtInvestmentService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgHdWaterPollutionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgHdWaterPollution;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgHdWaterPollutionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgHdWaterPollutionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--火电废水污染治理设施正常情况Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/hd/pollution")
|
||||||
|
public class BStatTableZxbgHdWaterPollutionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgHdWaterPollutionService bStatTableZxbgHdWaterPollutionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--火电废水污染治理设施正常情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgHdWaterPollution>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgHdWaterPollutionService.selectBStatTableZxbgHdWaterPollutionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--火电废水污染治理设施正常情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废水污染治理设施正常情况", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgHdWaterPollution>> iPageAjaxResults = bStatTableZxbgHdWaterPollutionService.selectBStatTableZxbgHdWaterPollutionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgHdWaterPollution> util = new ExcelUtil<BStatTableZxbgHdWaterPollution>(BStatTableZxbgHdWaterPollution.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--火电废水污染治理设施正常情况数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--火电废水污染治理设施正常情况详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--火电废水污染治理设施正常情况详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgHdWaterPollution> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgHdWaterPollutionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--火电废水污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废水污染治理设施正常情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgHdWaterPollution bStatTableZxbgHdWaterPollution) {
|
||||||
|
return toAjax(bStatTableZxbgHdWaterPollutionService.save(bStatTableZxbgHdWaterPollution));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--火电废水污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废水污染治理设施正常情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgHdWaterPollutionVo bStatTableZxbgHdWaterPollutionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdWaterPollutionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdWaterPollutionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgHdWaterPollution bStatTableZxbgHdWaterPollution = bStatTableZxbgHdWaterPollutionService.getById(bStatTableZxbgHdWaterPollutionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgHdWaterPollution)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgHdWaterPollutionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgHdWaterPollutionVo,bStatTableZxbgHdWaterPollution);
|
||||||
|
return toAjax(bStatTableZxbgHdWaterPollutionService.saveOrUpdate(bStatTableZxbgHdWaterPollution));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--火电废水污染治理设施正常情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--火电废水污染治理设施正常情况")
|
||||||
|
@RequiresPermissions("talroad:pollution:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--火电废水污染治理设施正常情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgHdWaterPollutionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgJbxxInfoController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgJbxxInfo>> iPageAjaxResults = bStatTableZxbgJbxxInfoService.selectBStatTableZxbgJbxxInfoListBy(query);
|
AjaxResults<IPage<BStatTableZxbgJbxxInfo>> iPageAjaxResults = bStatTableZxbgJbxxInfoService.selectBStatTableZxbgJbxxInfoListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgJbxxInfo> util = new ExcelUtil<BStatTableZxbgJbxxInfo>(BStatTableZxbgJbxxInfo.class);
|
ExcelUtil<BStatTableZxbgJbxxInfo> util = new ExcelUtil<BStatTableZxbgJbxxInfo>(BStatTableZxbgJbxxInfo.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--企业基本信息数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--企业基本信息数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,35 @@
|
||||||
package cn.cecep.talroad.controller;
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
import cn.cecep.talroad.common.core.exception.CommonException;
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.utils.SpringUtils;
|
||||||
|
import cn.cecep.talroad.common.core.utils.StringUtils;
|
||||||
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
import cn.cecep.talroad.domain.BStatTableZxbgJbxxInfo;
|
import cn.cecep.talroad.domain.BStatTableZxbgJbxxInfo;
|
||||||
|
import cn.cecep.talroad.util.ZipUtils;
|
||||||
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.cecep.talroad.vo.query.BStatTableZxbgPflAirQuery;
|
import cn.cecep.talroad.vo.query.BStatTableZxbgPflAirQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.ReflectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import cn.hutool.core.util.ZipUtil;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.lang.reflect.Method;
|
||||||
import java.security.InvalidParameterException;
|
import java.security.InvalidParameterException;
|
||||||
import java.util.List;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Arrays;
|
import java.util.*;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.commons.io.FileUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import cn.cecep.talroad.common.log.annotation.Log;
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
@ -65,12 +76,121 @@ public class BStatTableZxbgPflAirController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflAir>> iPageAjaxResults = bStatTableZxbgPflAirService.selectBStatTableZxbgPflAirListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflAir>> iPageAjaxResults = bStatTableZxbgPflAirService.selectBStatTableZxbgPflAirListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflAir> util = new ExcelUtil<BStatTableZxbgPflAir>(BStatTableZxbgPflAir.class);
|
ExcelUtil<BStatTableZxbgPflAir> util = new ExcelUtil<BStatTableZxbgPflAir>(BStatTableZxbgPflAir.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--废气实际排放量数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--废气实际排放量数据");
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 多表导出
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--多表导出")
|
||||||
|
@Log(title = "固定源产排治--多表导出", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/exportZip")
|
||||||
|
public void exportZip(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
|
||||||
|
try {
|
||||||
|
if(StringUtils.isNotBlank(query.getBeanMethodList())){
|
||||||
|
for (String beanMethod : query.getBeanMethodList().split(",")) {
|
||||||
|
try {
|
||||||
|
// 根据参数使用反射来调用对应的Controller方法
|
||||||
|
String invokeTarget = beanMethod+"('response query')";
|
||||||
|
String beanName = StrUtil.subBefore(invokeTarget, ".", true);
|
||||||
|
String methodName = StrUtil.subBetween(invokeTarget, ".", "(");
|
||||||
|
String param = StrUtil.subBetween(invokeTarget, "(", ")");
|
||||||
|
Object bean;
|
||||||
|
if (StrUtil.count(beanName, ".") == 0) {
|
||||||
|
bean = SpringUtils.getBean(beanName);
|
||||||
|
} else {
|
||||||
|
//Package 的形式得到 Bean,如: beanName="cn.cecep.talroad.controller.BStatTableZxbgJbxxInfoController"
|
||||||
|
bean = Class.forName(beanName).newInstance();
|
||||||
|
}
|
||||||
|
if (bean != null) {
|
||||||
|
if (StrUtil.isNotEmpty(param)) {
|
||||||
|
Method method = bean.getClass().getDeclaredMethod(methodName, HttpServletResponse.class,BStatTablepPwxkWaterQuery.class);
|
||||||
|
method.invoke(bean, response,query);
|
||||||
|
} else {
|
||||||
|
Method method = bean.getClass().getDeclaredMethod(methodName);
|
||||||
|
method.invoke(bean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("{}调用报错",beanMethod);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//filePaths:文件url。 zipFileName:下载的压缩包名字
|
||||||
|
List<String> filePaths = new ArrayList<String>();
|
||||||
|
String tempFilePath = System.getProperty("user.dir");
|
||||||
|
String dir =tempFilePath + File.separator+ExcelUtil.zipMkdir;
|
||||||
|
File file=new File(dir);
|
||||||
|
List<File> fileList = (List<File>)FileUtils.listFiles(file, null, true);
|
||||||
|
fileList.forEach(item->{
|
||||||
|
filePaths.add(item.getPath());
|
||||||
|
});
|
||||||
|
String zipFileName = "许可数据多表" + ".zip";
|
||||||
|
ZipUtils.downloadAndZipFiles(response, filePaths, zipFileName);
|
||||||
|
//删除临时目录
|
||||||
|
FileUtils.deleteDirectory(file);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@PostMapping("/exportZip1")
|
||||||
|
public void exportZip1(HttpServletResponse response, @RequestBody JSONObject query)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
Object o = Class.forName("cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery").newInstance();
|
||||||
|
Object queryVo =query.toJavaObject(o.getClass());
|
||||||
|
if(StringUtils.isNotBlank(query.getString("beanMethodList"))){
|
||||||
|
for (String beanMethod : query.getString("beanMethodList").split(",")) {
|
||||||
|
try {
|
||||||
|
// 根据参数使用反射来调用对应的Controller方法
|
||||||
|
String invokeTarget = beanMethod+"('response query')";
|
||||||
|
String beanName = StrUtil.subBefore(invokeTarget, ".", true);
|
||||||
|
String methodName = StrUtil.subBetween(invokeTarget, ".", "(");
|
||||||
|
String param = StrUtil.subBetween(invokeTarget, "(", ")");
|
||||||
|
Object bean;
|
||||||
|
if (StrUtil.count(beanName, ".") == 0) {
|
||||||
|
bean = SpringUtils.getBean(beanName);
|
||||||
|
} else {
|
||||||
|
//Package 的形式得到 Bean,如: beanName="cn.cecep.talroad.controller.BStatTableZxbgJbxxInfoController"
|
||||||
|
bean = Class.forName(beanName).newInstance();
|
||||||
|
}
|
||||||
|
if (bean != null) {
|
||||||
|
if (StrUtil.isNotEmpty(param)) {
|
||||||
|
Method method = bean.getClass().getDeclaredMethod(methodName, HttpServletResponse.class,queryVo.getClass());
|
||||||
|
method.invoke(bean, response,queryVo);
|
||||||
|
} else {
|
||||||
|
Method method = bean.getClass().getDeclaredMethod(methodName);
|
||||||
|
method.invoke(bean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
logger.info("{}调用报错",beanMethod);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//filePaths:文件url。 zipFileName:下载的压缩包名字
|
||||||
|
List<String> filePaths = new ArrayList<String>();
|
||||||
|
String tempFilePath = System.getProperty("user.dir");
|
||||||
|
String dir =tempFilePath + File.separator+ExcelUtil.zipMkdir;
|
||||||
|
File file=new File(dir);
|
||||||
|
List<File> fileList = (List<File>)FileUtils.listFiles(file, null, true);
|
||||||
|
fileList.forEach(item->{
|
||||||
|
filePaths.add(item.getPath());
|
||||||
|
});
|
||||||
|
String zipFileName = "许可数据多表" + ".zip";
|
||||||
|
ZipUtils.downloadAndZipFiles(response, filePaths, zipFileName);
|
||||||
|
//删除临时目录
|
||||||
|
FileUtils.deleteDirectory(file);
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取固定源产排治--执行报告--废气实际排放量详细信息
|
* 获取固定源产排治--执行报告--废气实际排放量详细信息
|
||||||
|
|
|
@ -63,10 +63,9 @@ public class BStatTableZxbgPflAirOtherController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflAirOther>> iPageAjaxResults = bStatTableZxbgPflAirOtherService.selectBStatTableZxbgPflAirOtherListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflAirOther>> iPageAjaxResults = bStatTableZxbgPflAirOtherService.selectBStatTableZxbgPflAirOtherListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflAirOther> util = new ExcelUtil<BStatTableZxbgPflAirOther>(BStatTableZxbgPflAirOther.class);
|
ExcelUtil<BStatTableZxbgPflAirOther> util = new ExcelUtil<BStatTableZxbgPflAirOther>(BStatTableZxbgPflAirOther.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--废气其他排放总计数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "执行报告--废气其他排放总计数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPflAirOverproofController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflAirOverproof>> iPageAjaxResults = bStatTableZxbgPflAirOverproofService.selectBStatTableZxbgPflAirOverproofListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflAirOverproof>> iPageAjaxResults = bStatTableZxbgPflAirOverproofService.selectBStatTableZxbgPflAirOverproofListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflAirOverproof> util = new ExcelUtil<BStatTableZxbgPflAirOverproof>(BStatTableZxbgPflAirOverproof.class);
|
ExcelUtil<BStatTableZxbgPflAirOverproof> util = new ExcelUtil<BStatTableZxbgPflAirOverproof>(BStatTableZxbgPflAirOverproof.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废气超标排放信息数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废气超标排放信息数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,17 +9,28 @@ import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.cecep.talroad.vo.query.BStatTableZxbgPflAirSpecialQuery;
|
import cn.cecep.talroad.vo.query.BStatTableZxbgPflAirSpecialQuery;
|
||||||
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.alibaba.nacos.shaded.com.google.common.net.HttpHeaders;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.io.FileInputStream;
|
||||||
|
import java.io.FileOutputStream;
|
||||||
import java.security.InvalidParameterException;
|
import java.security.InvalidParameterException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.zip.ZipEntry;
|
||||||
|
import java.util.zip.ZipOutputStream;
|
||||||
|
import javax.servlet.ServletOutputStream;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
import org.apache.poi.ss.usermodel.Workbook;
|
||||||
|
import org.apache.poi.xssf.streaming.SXSSFWorkbook;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.util.StreamUtils;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import cn.cecep.talroad.common.log.annotation.Log;
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
import cn.cecep.talroad.common.log.enums.BusinessType;
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
@ -65,10 +76,9 @@ public class BStatTableZxbgPflAirSpecialController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflAirSpecial>> iPageAjaxResults = bStatTableZxbgPflAirSpecialService.selectBStatTableZxbgPflAirSpecialListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflAirSpecial>> iPageAjaxResults = bStatTableZxbgPflAirSpecialService.selectBStatTableZxbgPflAirSpecialListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflAirSpecial> util = new ExcelUtil<BStatTableZxbgPflAirSpecial>(BStatTableZxbgPflAirSpecial.class);
|
ExcelUtil<BStatTableZxbgPflAirSpecial> util = new ExcelUtil<BStatTableZxbgPflAirSpecial>(BStatTableZxbgPflAirSpecial.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--特殊时段废气排放量数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--特殊时段废气排放量数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPflAirStatController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflAirStat>> iPageAjaxResults = bStatTableZxbgPflAirStatService.selectBStatTableZxbgPflAirStatListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflAirStat>> iPageAjaxResults = bStatTableZxbgPflAirStatService.selectBStatTableZxbgPflAirStatListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflAirStat> util = new ExcelUtil<BStatTableZxbgPflAirStat>(BStatTableZxbgPflAirStat.class);
|
ExcelUtil<BStatTableZxbgPflAirStat> util = new ExcelUtil<BStatTableZxbgPflAirStat>(BStatTableZxbgPflAirStat.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--总计废气实际排放量数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--总计废气实际排放量数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPflWaterController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflWater>> iPageAjaxResults = bStatTableZxbgPflWaterService.selectBStatTableZxbgPflWaterListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflWater>> iPageAjaxResults = bStatTableZxbgPflWaterService.selectBStatTableZxbgPflWaterListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflWater> util = new ExcelUtil<BStatTableZxbgPflWater>(BStatTableZxbgPflWater.class);
|
ExcelUtil<BStatTableZxbgPflWater> util = new ExcelUtil<BStatTableZxbgPflWater>(BStatTableZxbgPflWater.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水实际排放量数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水实际排放量数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPflWaterVoerproofController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflWaterVoerproof>> iPageAjaxResults = bStatTableZxbgPflWaterVoerproofService.selectBStatTableZxbgPflWaterVoerproofListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflWaterVoerproof>> iPageAjaxResults = bStatTableZxbgPflWaterVoerproofService.selectBStatTableZxbgPflWaterVoerproofListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflWaterVoerproof> util = new ExcelUtil<BStatTableZxbgPflWaterVoerproof>(BStatTableZxbgPflWaterVoerproof.class);
|
ExcelUtil<BStatTableZxbgPflWaterVoerproof> util = new ExcelUtil<BStatTableZxbgPflWaterVoerproof>(BStatTableZxbgPflWaterVoerproof.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水超标排放信息数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水超标排放信息数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPflallWaterController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPflallWater>> iPageAjaxResults = bStatTableZxbgPflallWaterService.selectBStatTableZxbgPflallWaterListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPflallWater>> iPageAjaxResults = bStatTableZxbgPflallWaterService.selectBStatTableZxbgPflallWaterListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPflallWater> util = new ExcelUtil<BStatTableZxbgPflallWater>(BStatTableZxbgPflallWater.class);
|
ExcelUtil<BStatTableZxbgPflallWater> util = new ExcelUtil<BStatTableZxbgPflallWater>(BStatTableZxbgPflallWater.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--总计废水实际排放量数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--总计废水实际排放量数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,10 +65,9 @@ public class BStatTableZxbgPfltotalWaterController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgPfltotalWater>> iPageAjaxResults = bStatTableZxbgPfltotalWaterService.selectBStatTableZxbgPfltotalWaterListBy(query);
|
AjaxResults<IPage<BStatTableZxbgPfltotalWater>> iPageAjaxResults = bStatTableZxbgPfltotalWaterService.selectBStatTableZxbgPfltotalWaterListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgPfltotalWater> util = new ExcelUtil<BStatTableZxbgPfltotalWater>(BStatTableZxbgPfltotalWater.class);
|
ExcelUtil<BStatTableZxbgPfltotalWater> util = new ExcelUtil<BStatTableZxbgPfltotalWater>(BStatTableZxbgPfltotalWater.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水正常排放总计(一般排放口)数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水正常排放总计(一般排放口)数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgSnFuelQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgSnFuel;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgSnFuelVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgSnFuelService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--水泥燃料分析Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/sn/fuel")
|
||||||
|
public class BStatTableZxbgSnFuelController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgSnFuelService bStatTableZxbgSnFuelService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--水泥燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgSnFuel>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgSnFuelService.selectBStatTableZxbgSnFuelListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--水泥燃料分析列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥燃料分析", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgSnFuel>> iPageAjaxResults = bStatTableZxbgSnFuelService.selectBStatTableZxbgSnFuelListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgSnFuel> util = new ExcelUtil<BStatTableZxbgSnFuel>(BStatTableZxbgSnFuel.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--水泥燃料分析数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--水泥燃料分析详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--水泥燃料分析详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgSnFuel> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgSnFuelService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--水泥燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥燃料分析", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgSnFuel bStatTableZxbgSnFuel) {
|
||||||
|
return toAjax(bStatTableZxbgSnFuelService.save(bStatTableZxbgSnFuel));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--水泥燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥燃料分析", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgSnFuelVo bStatTableZxbgSnFuelVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnFuelVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnFuelVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgSnFuel bStatTableZxbgSnFuel = bStatTableZxbgSnFuelService.getById(bStatTableZxbgSnFuelVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnFuel)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgSnFuelVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgSnFuelVo,bStatTableZxbgSnFuel);
|
||||||
|
return toAjax(bStatTableZxbgSnFuelService.saveOrUpdate(bStatTableZxbgSnFuel));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--水泥燃料分析
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--水泥燃料分析")
|
||||||
|
@RequiresPermissions("talroad:fuel:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥燃料分析", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgSnFuelService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgGasEmissionStatistics;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgSnProductionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgSnProduction;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgSnProductionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgSnProductionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--水泥-生产单元运行情况Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/report/sn/production")
|
||||||
|
public class BStatTableZxbgSnProductionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgSnProductionService bStatTableZxbgSnProductionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--水泥-生产单元运行情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgSnProduction>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgSnProductionService.selectBStatTableZxbgSnProductionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--水泥-生产单元运行情况列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥-生产单元运行情况", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgSnProduction>> iPageAjaxResults= bStatTableZxbgSnProductionService.selectBStatTableZxbgSnProductionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgSnProduction> util = new ExcelUtil<BStatTableZxbgSnProduction>(BStatTableZxbgSnProduction.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--水泥-生产单元运行情况数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--水泥-生产单元运行情况详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--水泥-生产单元运行情况详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgSnProduction> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgSnProductionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--水泥-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥-生产单元运行情况", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgSnProduction bStatTableZxbgSnProduction) {
|
||||||
|
return toAjax(bStatTableZxbgSnProductionService.save(bStatTableZxbgSnProduction));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--水泥-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥-生产单元运行情况", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgSnProductionVo bStatTableZxbgSnProductionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnProductionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnProductionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgSnProduction bStatTableZxbgSnProduction = bStatTableZxbgSnProductionService.getById(bStatTableZxbgSnProductionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgSnProduction)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgSnProductionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgSnProductionVo,bStatTableZxbgSnProduction);
|
||||||
|
return toAjax(bStatTableZxbgSnProductionService.saveOrUpdate(bStatTableZxbgSnProduction));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--水泥-生产单元运行情况
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--水泥-生产单元运行情况")
|
||||||
|
@RequiresPermissions("talroad:production:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--水泥-生产单元运行情况", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgSnProductionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,123 @@
|
||||||
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.exception.CommonException;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgPflAir;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTablepPwxkWaterQuery;
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.cecep.talroad.vo.query.BStatTableZxbgWaterEmissionQuery;
|
||||||
|
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.domain.BStatTableZxbgWaterEmission;
|
||||||
|
import cn.cecep.talroad.vo.BStatTableZxbgWaterEmissionVo;
|
||||||
|
import cn.cecep.talroad.service.IBStatTableZxbgWaterEmissionService;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* * 开发公司:中节能天融科技有限公司
|
||||||
|
* 固定源产排治--执行报告--废水污染物排放浓度监测数据Controller 控制层
|
||||||
|
*
|
||||||
|
* @author szhpt
|
||||||
|
* @date 2023-08-01*/
|
||||||
|
@Api(tags = "固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/execution/water/emission")
|
||||||
|
public class BStatTableZxbgWaterEmissionController extends BasesController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private IBStatTableZxbgWaterEmissionService bStatTableZxbgWaterEmissionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询固定源产排治--执行报告--废水污染物排放浓度监测数据列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "查询固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public AjaxResults<IPage<BStatTableZxbgWaterEmission>> list(@RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
return bStatTableZxbgWaterEmissionService.selectBStatTableZxbgWaterEmissionListBy(query);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出固定源产排治--执行报告--废水污染物排放浓度监测数据列表
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "导出固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--废水污染物排放浓度监测数据", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
|
{
|
||||||
|
AjaxResults<IPage<BStatTableZxbgWaterEmission>> iPageAjaxResults = bStatTableZxbgWaterEmissionService.selectBStatTableZxbgWaterEmissionListBy(query);
|
||||||
|
ExcelUtil<BStatTableZxbgWaterEmission> util = new ExcelUtil<BStatTableZxbgWaterEmission>(BStatTableZxbgWaterEmission.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--废水污染物排放浓度监测数据数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取固定源产排治--执行报告--废水污染物排放浓度监测数据详细信息
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "获取固定源产排治--执行报告--废水污染物排放浓度监测数据详细信息")
|
||||||
|
@PostMapping(value = "/{id}")
|
||||||
|
public AjaxResults<BStatTableZxbgWaterEmission> getInfo(@PathVariable("id") Integer id) {
|
||||||
|
return AjaxResults.success(bStatTableZxbgWaterEmissionService.getById(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增固定源产排治--执行报告--废水污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "新增固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--废水污染物排放浓度监测数据", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public AjaxResults<Boolean> add(@RequestBody BStatTableZxbgWaterEmission bStatTableZxbgWaterEmission) {
|
||||||
|
return toAjax(bStatTableZxbgWaterEmissionService.save(bStatTableZxbgWaterEmission));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改固定源产排治--执行报告--废水污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "修改固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@Log(title = "固定源产排治--执行报告--废水污染物排放浓度监测数据", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping(value = "/edit")
|
||||||
|
public AjaxResults<Boolean> edit(@RequestBody BStatTableZxbgWaterEmissionVo bStatTableZxbgWaterEmissionVo) {
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgWaterEmissionVo)){
|
||||||
|
throw new InvalidParameterException("参数为空");
|
||||||
|
}
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgWaterEmissionVo.getId())){
|
||||||
|
throw new InvalidParameterException("参数id为空");
|
||||||
|
}
|
||||||
|
BStatTableZxbgWaterEmission bStatTableZxbgWaterEmission = bStatTableZxbgWaterEmissionService.getById(bStatTableZxbgWaterEmissionVo.getId());
|
||||||
|
if(ObjectUtil.isEmpty(bStatTableZxbgWaterEmission)){
|
||||||
|
throw new CommonException(StrUtil.format("根据id{}查询不到数据", bStatTableZxbgWaterEmissionVo.getId()));
|
||||||
|
}
|
||||||
|
//赋值
|
||||||
|
BeanUtil.copyProperties(bStatTableZxbgWaterEmissionVo,bStatTableZxbgWaterEmission);
|
||||||
|
return toAjax(bStatTableZxbgWaterEmissionService.saveOrUpdate(bStatTableZxbgWaterEmission));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除固定源产排治--执行报告--废水污染物排放浓度监测数据
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "删除固定源产排治--执行报告--废水污染物排放浓度监测数据")
|
||||||
|
@RequiresPermissions("talroad:emission:remove")
|
||||||
|
@Log(title = "固定源产排治--执行报告--废水污染物排放浓度监测数据", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/{ids}")
|
||||||
|
public AjaxResults<Boolean> remove(@PathVariable Long[] ids) {
|
||||||
|
return toAjax(bStatTableZxbgWaterEmissionService.removeByIds(Arrays.asList(ids)));
|
||||||
|
}
|
||||||
|
}
|
|
@ -64,10 +64,9 @@ public class BStatTableZxbgWrzlAbnormalitiesController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgWrzlAbnormalities>> iPageAjaxResults = bStatTableZxbgWrzlAbnormalitiesService.selectBStatTableZxbgWrzlAbnormalitiesListBy(query);
|
AjaxResults<IPage<BStatTableZxbgWrzlAbnormalities>> iPageAjaxResults = bStatTableZxbgWrzlAbnormalitiesService.selectBStatTableZxbgWrzlAbnormalitiesListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgWrzlAbnormalities> util = new ExcelUtil<BStatTableZxbgWrzlAbnormalities>(BStatTableZxbgWrzlAbnormalities.class);
|
ExcelUtil<BStatTableZxbgWrzlAbnormalities> util = new ExcelUtil<BStatTableZxbgWrzlAbnormalities>(BStatTableZxbgWrzlAbnormalities.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--污染治理设施异常情况数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--污染治理设施异常情况数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,10 +64,9 @@ public class BStatTableZxbgWrzlTotalController extends BasesController
|
||||||
@PostMapping("/export")
|
@PostMapping("/export")
|
||||||
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
public void export(HttpServletResponse response, @RequestBody BStatTablepPwxkWaterQuery query)
|
||||||
{
|
{
|
||||||
query.setPageNum(1);
|
|
||||||
query.setPageSize(9999999);
|
|
||||||
AjaxResults<IPage<BStatTableZxbgWrzlTotal>> iPageAjaxResults = bStatTableZxbgWrzlTotalService.selectBStatTableZxbgWrzlTotalListBy(query);
|
AjaxResults<IPage<BStatTableZxbgWrzlTotal>> iPageAjaxResults = bStatTableZxbgWrzlTotalService.selectBStatTableZxbgWrzlTotalListBy(query);
|
||||||
ExcelUtil<BStatTableZxbgWrzlTotal> util = new ExcelUtil<BStatTableZxbgWrzlTotal>(BStatTableZxbgWrzlTotal.class);
|
ExcelUtil<BStatTableZxbgWrzlTotal> util = new ExcelUtil<BStatTableZxbgWrzlTotal>(BStatTableZxbgWrzlTotal.class);
|
||||||
|
util.setBol(query.getBol());
|
||||||
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--污染治理设施正常情况汇总数据");
|
util.exportExcel(response, iPageAjaxResults.getData().getRecords(), "固定源产排治--执行报告--污染治理设施正常情况汇总数据");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,9 @@ import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
import cn.cecep.talroad.common.log.enums.BusinessType;
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
import cn.cecep.talroad.domain.PcControlRequirements;
|
import cn.cecep.talroad.domain.PcControlRequirements;
|
||||||
import cn.cecep.talroad.service.IPcControlRequirementsService;
|
import cn.cecep.talroad.service.IPcControlRequirementsService;
|
||||||
|
import cn.cecep.talroad.vo.PcControlRequirementsVo;
|
||||||
import cn.cecep.talroad.vo.query.PcControlRequirementsQuery;
|
import cn.cecep.talroad.vo.query.PcControlRequirementsQuery;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
@ -17,6 +19,8 @@ import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,4 +72,93 @@ public class PcControlRequirementsController extends BasesController
|
||||||
return AjaxResults.success(pcControlRequirementsService.getById(id));
|
return AjaxResults.success(pcControlRequirementsService.getById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气有组织排放要求")
|
||||||
|
@PostMapping("/pwxk/gas/org/list")
|
||||||
|
public AjaxResults<IPage<PcControlRequirementsVo.PwxkGasOrg>> pwxkGasOrg(@RequestBody PcControlRequirementsQuery.PwxkGasOrg query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkGasOrg> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkGasOrg> list = pcControlRequirementsService.selectPwxkGasOrg(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气有组织排放要求导出")
|
||||||
|
@PostMapping("/export/pwxk/gas/org/list")
|
||||||
|
public void exportPwxkGasOrg(@RequestBody PcControlRequirementsQuery.PwxkGasOrg query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkGasOrg> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkGasOrg> list = pcControlRequirementsService.selectPwxkGasOrg(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcControlRequirementsVo.PwxkGasOrg.class);
|
||||||
|
ExcelUtil.export(exportMap, "废气有组织排放要求");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气无组织排放要求")
|
||||||
|
@PostMapping("/pwxk/gas/noOrg/list")
|
||||||
|
public AjaxResults<IPage<PcControlRequirementsVo.PwxkGasNoOrg>> pwxkGasNoOrg(@RequestBody PcControlRequirementsQuery.PwxkGasNoOrg query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkGasNoOrg> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkGasNoOrg> list = pcControlRequirementsService.selectPwxkGasNoOrg(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气无组织排放要求导出")
|
||||||
|
@PostMapping("/export/pwxk/gas/noOrg/list")
|
||||||
|
public void exportPwxkGasNoOrg(@RequestBody PcControlRequirementsQuery.PwxkGasNoOrg query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkGasNoOrg> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkGasNoOrg> list = pcControlRequirementsService.selectPwxkGasNoOrg(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcControlRequirementsVo.PwxkGasNoOrg.class);
|
||||||
|
ExcelUtil.export(exportMap, "废气无组织排放要求");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水直接排口排放要求")
|
||||||
|
@PostMapping("/pwxk/water/direct/list")
|
||||||
|
public AjaxResults<IPage<PcControlRequirementsVo.PwxkWaterDirect>> pwxkWaterDirect(@RequestBody PcControlRequirementsQuery.PwxkWaterDirect query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkWaterDirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkWaterDirect> list = pcControlRequirementsService.selectPwxkWaterDirect(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水直接排口排放要求导出")
|
||||||
|
@PostMapping("/export/pwxk/water/direct/list")
|
||||||
|
public void exportPwxkWaterDirect(@RequestBody PcControlRequirementsQuery.PwxkWaterDirect query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkWaterDirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkWaterDirect> list = pcControlRequirementsService.selectPwxkWaterDirect(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcControlRequirementsVo.PwxkWaterDirect.class);
|
||||||
|
ExcelUtil.export(exportMap, "废水直接排口排放要求");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水间接排口排放要求")
|
||||||
|
@PostMapping("/pwxk/water/indirect/list")
|
||||||
|
public AjaxResults<IPage<PcControlRequirementsVo.PwxkWaterIndirect>> pwxkWaterIndirect(@RequestBody PcControlRequirementsQuery.PwxkWaterIndirect query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkWaterIndirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkWaterIndirect> list = pcControlRequirementsService.selectPwxkWaterIndirect(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水间接排口排放要求导出")
|
||||||
|
@PostMapping("/export/pwxk/water/indirect/list")
|
||||||
|
public void exportPwxkWaterIndirect(@RequestBody PcControlRequirementsQuery.PwxkWaterIndirect query) {
|
||||||
|
Page<PcControlRequirementsVo.PwxkWaterIndirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcControlRequirementsVo.PwxkWaterIndirect> list = pcControlRequirementsService.selectPwxkWaterIndirect(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcControlRequirementsVo.PwxkWaterIndirect.class);
|
||||||
|
ExcelUtil.export(exportMap, "废水间接排口排放要求");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "污染物种类下拉选")
|
||||||
|
@GetMapping("/pollutant/options")
|
||||||
|
public AjaxResults<List<String>> pollutantOptions() {
|
||||||
|
List<PcControlRequirements> list = pcControlRequirementsService.list(new QueryWrapper<PcControlRequirements>()
|
||||||
|
.select("pollutant_name")
|
||||||
|
.isNotNull("pollutant_name")
|
||||||
|
.groupBy("pollutant_name")
|
||||||
|
.orderByAsc("pollutant_name")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(PcControlRequirements::getPollutantName).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,6 @@ import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
import org.springframework.beans.BeanUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@ -93,6 +92,26 @@ public class PcFactoryController extends BasesController
|
||||||
return AjaxResults.success(page);
|
return AjaxResults.success(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-基本信息列表")
|
||||||
|
@PostMapping("/pwxk/list")
|
||||||
|
public AjaxResults<IPage<PwxkFactoryVo>> pwxkList(@RequestBody PcFactoryQuery.SearchVo searchVo) {
|
||||||
|
Page<PwxkFactoryVo> pwxkFactoryVoPage = new Page<>(searchVo.getPageNum(), searchVo.getPageSize());
|
||||||
|
List<PwxkFactoryVo> records = pcFactoryService.selectPwxkList(pwxkFactoryVoPage, searchVo);
|
||||||
|
pwxkFactoryVoPage.setRecords(records);
|
||||||
|
return AjaxResults.success(pwxkFactoryVoPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-基本信息列表导出")
|
||||||
|
@PostMapping("/export/pwxk/list")
|
||||||
|
public void exportPwxkList(HttpServletResponse response, @RequestBody PcFactoryQuery.SearchVo searchVo)
|
||||||
|
{
|
||||||
|
Page<PwxkFactoryVo> pwxkFactoryVoPage = new Page<>(searchVo.getPageNum(), searchVo.getPageSize());
|
||||||
|
List<PwxkFactoryVo> records = pcFactoryService.selectPwxkList(pwxkFactoryVoPage, searchVo);
|
||||||
|
|
||||||
|
ExcelUtil<PwxkFactoryVo> util = new ExcelUtil<>(PwxkFactoryVo.class);
|
||||||
|
util.exportExcel(response, records, "排污许可基本信息统计");
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "获取企业的关联设备类型")
|
@ApiOperation(value = "获取企业的关联设备类型")
|
||||||
@GetMapping("/deviceType/{id}")
|
@GetMapping("/deviceType/{id}")
|
||||||
public AjaxResults<List<Map<String, Object>>> list(@PathVariable("id") String id)
|
public AjaxResults<List<Map<String, Object>>> list(@PathVariable("id") String id)
|
||||||
|
|
|
@ -128,15 +128,8 @@ public class PcLabelController extends BasesController
|
||||||
@Log(title = "特征标签", businessType = BusinessType.INSERT)
|
@Log(title = "特征标签", businessType = BusinessType.INSERT)
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public AjaxResults add(@RequestBody PcLabel pcLabel) {
|
public AjaxResults add(@RequestBody PcLabel pcLabel) {
|
||||||
LambdaQueryWrapper<PcLabel> queryWrapper = new LambdaQueryWrapper<>();
|
pcLabelService.add(pcLabel);
|
||||||
queryWrapper.eq(PcLabel::getLabelVal, pcLabel.getLabelVal());
|
return AjaxResults.success(true);
|
||||||
PcLabel one = pcLabelService.getOne(queryWrapper);
|
|
||||||
if(one != null){
|
|
||||||
return error("标签名称不能重复");
|
|
||||||
}else {
|
|
||||||
pcLabel.setId(UUID.randomUUID().toString());
|
|
||||||
return toAjax(pcLabelService.save(pcLabel));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 修改特征标签
|
* 修改特征标签
|
||||||
|
@ -145,19 +138,8 @@ public class PcLabelController extends BasesController
|
||||||
@Log(title = "特征标签", businessType = BusinessType.UPDATE)
|
@Log(title = "特征标签", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public AjaxResults<Boolean> edit(@RequestBody PcLabelVo pcLabelVo) {
|
public AjaxResults<Boolean> edit(@RequestBody PcLabelVo pcLabelVo) {
|
||||||
if(ObjectUtil.isEmpty(pcLabelVo)){
|
pcLabelService.edit(pcLabelVo);
|
||||||
throw new InvalidParameterException("参数为空");
|
return AjaxResults.success(true);
|
||||||
}
|
|
||||||
if(ObjectUtil.isEmpty(pcLabelVo.getId())){
|
|
||||||
throw new InvalidParameterException("参数id为空");
|
|
||||||
}
|
|
||||||
PcLabel pcLabel = pcLabelService.getById(pcLabelVo.getId());
|
|
||||||
if(ObjectUtil.isEmpty(pcLabel)){
|
|
||||||
throw new CommonException(StrUtil.format("根据id{}查询不到数据", pcLabelVo.getId()));
|
|
||||||
}
|
|
||||||
//赋值
|
|
||||||
BeanUtil.copyProperties(pcLabelVo,pcLabel);
|
|
||||||
return toAjax(pcLabelService.saveOrUpdate(pcLabel));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,14 +148,10 @@ public class PcLabelController extends BasesController
|
||||||
@ApiOperation(value = "删除特征标签")
|
@ApiOperation(value = "删除特征标签")
|
||||||
@RequiresPermissions("talroad:label:remove")
|
@RequiresPermissions("talroad:label:remove")
|
||||||
@Log(title = "特征标签", businessType = BusinessType.DELETE)
|
@Log(title = "特征标签", businessType = BusinessType.DELETE)
|
||||||
@PostMapping("/{ids}")
|
@PostMapping("/{id}")
|
||||||
public AjaxResults<Boolean> remove(@PathVariable String[] ids) {
|
public AjaxResults<Boolean> remove(@PathVariable String id) {
|
||||||
// 先删除它的标签值
|
pcLabelService.delete(id);
|
||||||
LambdaQueryWrapper<PcLabelValue> queryWrapper = new LambdaQueryWrapper();
|
return AjaxResults.success(true);
|
||||||
queryWrapper.in(PcLabelValue::getLabelId, ids);
|
|
||||||
pcLabelValueService.remove(queryWrapper);
|
|
||||||
// 再删除当前标签
|
|
||||||
return toAjax(pcLabelService.removeByIds(Arrays.asList(ids)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,45 +1,29 @@
|
||||||
package cn.cecep.talroad.controller;
|
package cn.cecep.talroad.controller;
|
||||||
|
|
||||||
import cn.cecep.talroad.common.core.exception.CommonException;
|
|
||||||
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
|
||||||
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
import cn.cecep.talroad.common.core.web.controller.BasesController;
|
||||||
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
import cn.cecep.talroad.common.log.annotation.Log;
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
import cn.cecep.talroad.common.log.enums.BusinessType;
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
import cn.cecep.talroad.common.security.annotation.RequiresPermissions;
|
||||||
import cn.cecep.talroad.domain.PcFactory;
|
|
||||||
import cn.cecep.talroad.domain.PcLabel;
|
|
||||||
import cn.cecep.talroad.domain.PcLabelFactory;
|
import cn.cecep.talroad.domain.PcLabelFactory;
|
||||||
import cn.cecep.talroad.service.IPcFactoryService;
|
|
||||||
import cn.cecep.talroad.service.IPcLabelFactoryService;
|
import cn.cecep.talroad.service.IPcLabelFactoryService;
|
||||||
import cn.cecep.talroad.service.IPcLabelService;
|
|
||||||
import cn.cecep.talroad.vo.PcLabelFactoryVo;
|
import cn.cecep.talroad.vo.PcLabelFactoryVo;
|
||||||
import cn.cecep.talroad.vo.query.PcLabelFactoryQuery;
|
import cn.cecep.talroad.vo.query.PcLabelFactoryQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
|
||||||
import cn.hutool.core.util.StrUtil;
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
|
||||||
import java.security.InvalidParameterException;
|
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.UUID;
|
|
||||||
import java.util.stream.Collectors;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* * 开发公司:中节能天融科技有限公司
|
* * 开发公司:中节能天融科技有限公司
|
||||||
* 特征标签-与企业关系中间Controller 控制层
|
* 特征标签-与企业关系中间Controller 控制层
|
||||||
*
|
*/
|
||||||
* @author szhpt
|
|
||||||
* @date 2023-02-02*/
|
|
||||||
@Api(tags = "基本档案--特征标签-与企业关系中间")
|
@Api(tags = "基本档案--特征标签-与企业关系中间")
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/pcLabelFactory")
|
@RequestMapping("/pcLabelFactory")
|
||||||
|
@ -48,12 +32,6 @@ public class PcLabelFactoryController extends BasesController
|
||||||
@Autowired
|
@Autowired
|
||||||
private IPcLabelFactoryService pcLabelFactoryService;
|
private IPcLabelFactoryService pcLabelFactoryService;
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IPcLabelService iPcLabelService;
|
|
||||||
|
|
||||||
@Autowired
|
|
||||||
private IPcFactoryService iPcFactoryService;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询特征标签-与企业关系中间列表
|
* 查询特征标签-与企业关系中间列表
|
||||||
*/
|
*/
|
||||||
|
@ -61,45 +39,12 @@ public class PcLabelFactoryController extends BasesController
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public AjaxResults<IPage<PcLabelFactoryVo>> list(PcLabelFactoryQuery pcLabelFactory)
|
public AjaxResults<IPage<PcLabelFactoryVo>> list(PcLabelFactoryQuery pcLabelFactory)
|
||||||
{
|
{
|
||||||
Page<PcLabelFactory> page = new Page<>(pcLabelFactory.getPageNum(), pcLabelFactory.getPageSize());
|
Page<PcLabelFactoryVo> voPage = new Page<>(pcLabelFactory.getPageNum(), pcLabelFactory.getPageSize());
|
||||||
Page<PcLabelFactoryVo> voPage = new Page<>();
|
List<PcLabelFactoryVo> list = pcLabelFactoryService.selectFactoryLabelList(voPage, pcLabelFactory);
|
||||||
IPage<PcLabelFactory> list = pcLabelFactoryService.page(page, PcLabelFactoryQuery.createLambdaQueryWrapper(pcLabelFactory));
|
voPage.setRecords(list);
|
||||||
|
|
||||||
// PcLabelFactoryVo转换
|
|
||||||
BeanUtil.copyProperties(list, voPage, "records");
|
|
||||||
List<PcLabelFactoryVo> pcLabelVoList = list.getRecords().stream().map((item) -> {
|
|
||||||
PcLabelFactoryVo pcLabelFactoryVo = new PcLabelFactoryVo();
|
|
||||||
BeanUtil.copyProperties(item, pcLabelFactoryVo);
|
|
||||||
// 通过特征标签id查询特征标签名称
|
|
||||||
PcLabel pcLabel = iPcLabelService.getById(item.getLabelId());
|
|
||||||
if(pcLabel != null){
|
|
||||||
pcLabelFactoryVo.setLabelName(pcLabel.getLabelVal());
|
|
||||||
}
|
|
||||||
// 通过企业id查询企业名称
|
|
||||||
PcFactory factory = iPcFactoryService.getById(item.getFactoryId());
|
|
||||||
if(factory != null){
|
|
||||||
pcLabelFactoryVo.setFactoryName(factory.getFactoryName());
|
|
||||||
}
|
|
||||||
|
|
||||||
return pcLabelFactoryVo;
|
|
||||||
}).collect(Collectors.toList());
|
|
||||||
|
|
||||||
voPage.setRecords(pcLabelVoList);
|
|
||||||
return AjaxResults.success(voPage);
|
return AjaxResults.success(voPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 导出特征标签-与企业关系中间列表
|
|
||||||
*/
|
|
||||||
@ApiOperation(value = "导出特征标签-与企业关系中间")
|
|
||||||
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.EXPORT)
|
|
||||||
@PostMapping("/export")
|
|
||||||
public void export(HttpServletResponse response, PcLabelFactory pcLabelFactory)
|
|
||||||
{
|
|
||||||
List<PcLabelFactory> list = pcLabelFactoryService.selectPcLabelFactoryList(pcLabelFactory);
|
|
||||||
ExcelUtil<PcLabelFactory> util = new ExcelUtil<PcLabelFactory>(PcLabelFactory.class);
|
|
||||||
util.exportExcel(response, list, "特征标签-与企业关系中间数据");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取特征标签-与企业关系中间详细信息
|
* 获取特征标签-与企业关系中间详细信息
|
||||||
|
@ -115,18 +60,9 @@ public class PcLabelFactoryController extends BasesController
|
||||||
@ApiOperation(value = "新增特征标签-与企业关系中间")
|
@ApiOperation(value = "新增特征标签-与企业关系中间")
|
||||||
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.INSERT)
|
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.INSERT)
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public AjaxResults add(@RequestBody PcLabelFactory pcLabelFactory) {
|
public AjaxResults add(@RequestBody @Validated PcLabelFactory pcLabelFactory) {
|
||||||
LambdaQueryWrapper<PcLabelFactory> queryWrapper = new LambdaQueryWrapper<>();
|
pcLabelFactoryService.add(pcLabelFactory);
|
||||||
queryWrapper
|
return AjaxResults.success(true);
|
||||||
.eq(PcLabelFactory::getFactoryId, pcLabelFactory.getFactoryId())
|
|
||||||
.eq(PcLabelFactory::getLabelId, pcLabelFactory.getLabelId());
|
|
||||||
PcLabelFactory one = pcLabelFactoryService.getOne(queryWrapper);
|
|
||||||
if(one != null){
|
|
||||||
return error("该企业已存在此标签");
|
|
||||||
}else{
|
|
||||||
pcLabelFactory.setId(UUID.randomUUID().toString());
|
|
||||||
return toAjax(pcLabelFactoryService.save(pcLabelFactory));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 修改特征标签-与企业关系中间
|
* 修改特征标签-与企业关系中间
|
||||||
|
@ -134,20 +70,9 @@ public class PcLabelFactoryController extends BasesController
|
||||||
@ApiOperation(value = "修改特征标签-与企业关系中间")
|
@ApiOperation(value = "修改特征标签-与企业关系中间")
|
||||||
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.UPDATE)
|
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public AjaxResults<Boolean> edit(@RequestBody PcLabelFactoryVo pcLabelFactoryVo) {
|
public AjaxResults<Boolean> edit(@RequestBody PcLabelFactory pcLabelFactory) {
|
||||||
if(ObjectUtil.isEmpty(pcLabelFactoryVo)){
|
pcLabelFactoryService.edit(pcLabelFactory);
|
||||||
throw new InvalidParameterException("参数为空");
|
return AjaxResults.success(true);
|
||||||
}
|
|
||||||
if(ObjectUtil.isEmpty(pcLabelFactoryVo.getId())){
|
|
||||||
throw new InvalidParameterException("参数id为空");
|
|
||||||
}
|
|
||||||
PcLabelFactory pcLabelFactory = pcLabelFactoryService.getById(pcLabelFactoryVo.getId());
|
|
||||||
if(ObjectUtil.isEmpty(pcLabelFactory)){
|
|
||||||
throw new CommonException(StrUtil.format("根据id{}查询不到数据", pcLabelFactoryVo.getId()));
|
|
||||||
}
|
|
||||||
//赋值
|
|
||||||
BeanUtil.copyProperties(pcLabelFactoryVo,pcLabelFactory);
|
|
||||||
return toAjax(pcLabelFactoryService.saveOrUpdate(pcLabelFactory));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -156,8 +81,16 @@ throw new CommonException(StrUtil.format("根据id{}查询不到数据", pcLabel
|
||||||
@ApiOperation(value = "删除特征标签-与企业关系中间")
|
@ApiOperation(value = "删除特征标签-与企业关系中间")
|
||||||
@RequiresPermissions("talroad:pcLabelFactory:remove")
|
@RequiresPermissions("talroad:pcLabelFactory:remove")
|
||||||
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.DELETE)
|
@Log(title = "特征标签-与企业关系中间", businessType = BusinessType.DELETE)
|
||||||
@PostMapping("/{ids}")
|
@PostMapping("/{id}")
|
||||||
public AjaxResults<Boolean> remove(@PathVariable String[] ids) {
|
public AjaxResults<Boolean> remove(@PathVariable String id) {
|
||||||
return toAjax(pcLabelFactoryService.removeByIds(Arrays.asList(ids)));
|
pcLabelFactoryService.delete(id);
|
||||||
|
return AjaxResults.success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "批量将某一标签值赋予企业")
|
||||||
|
@PostMapping(value = "/add/factory/batch")
|
||||||
|
public AjaxResults<Boolean> batchAddFactoryLabel(@RequestBody PcLabelFactoryVo.FactoryLabelUpdateForm form) {
|
||||||
|
pcLabelFactoryService.batchAddFactoryLabel(form);
|
||||||
|
return AjaxResults.success(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,8 +97,9 @@ public class PcLabelValueController extends BasesController
|
||||||
@Log(title = "特征标签-参数值", businessType = BusinessType.INSERT)
|
@Log(title = "特征标签-参数值", businessType = BusinessType.INSERT)
|
||||||
@PostMapping(value = "/add")
|
@PostMapping(value = "/add")
|
||||||
public AjaxResults<Boolean> add(@RequestBody PcLabelValue pcLabelValue) {
|
public AjaxResults<Boolean> add(@RequestBody PcLabelValue pcLabelValue) {
|
||||||
pcLabelValue.setId(UUID.randomUUID().toString());
|
pcLabelValueService.add(pcLabelValue);
|
||||||
return toAjax(pcLabelValueService.save(pcLabelValue));
|
return AjaxResults.success(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 修改特征标签-参数值
|
* 修改特征标签-参数值
|
||||||
|
@ -106,20 +107,9 @@ public class PcLabelValueController extends BasesController
|
||||||
@ApiOperation(value = "修改特征标签-参数值")
|
@ApiOperation(value = "修改特征标签-参数值")
|
||||||
@Log(title = "特征标签-参数值", businessType = BusinessType.UPDATE)
|
@Log(title = "特征标签-参数值", businessType = BusinessType.UPDATE)
|
||||||
@PostMapping(value = "/edit")
|
@PostMapping(value = "/edit")
|
||||||
public AjaxResults<Boolean> edit(@RequestBody PcLabelValueVo pcLabelValueVo) {
|
public AjaxResults<Boolean> edit(@RequestBody PcLabelValue pcLabelValue) {
|
||||||
if(ObjectUtil.isEmpty(pcLabelValueVo)){
|
pcLabelValueService.edit(pcLabelValue);
|
||||||
throw new InvalidParameterException("参数为空");
|
return AjaxResults.success(true);
|
||||||
}
|
|
||||||
if(ObjectUtil.isEmpty(pcLabelValueVo.getId())){
|
|
||||||
throw new InvalidParameterException("参数id为空");
|
|
||||||
}
|
|
||||||
PcLabelValue pcLabelValue = pcLabelValueService.getById(pcLabelValueVo.getId());
|
|
||||||
if(ObjectUtil.isEmpty(pcLabelValue)){
|
|
||||||
throw new CommonException(StrUtil.format("根据id{}查询不到数据", pcLabelValueVo.getId()));
|
|
||||||
}
|
|
||||||
//赋值
|
|
||||||
BeanUtil.copyProperties(pcLabelValueVo,pcLabelValue);
|
|
||||||
return toAjax(pcLabelValueService.saveOrUpdate(pcLabelValue));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -128,9 +118,10 @@ public class PcLabelValueController extends BasesController
|
||||||
@ApiOperation(value = "删除特征标签-参数值")
|
@ApiOperation(value = "删除特征标签-参数值")
|
||||||
@RequiresPermissions("talroad:pcLabelValue:remove")
|
@RequiresPermissions("talroad:pcLabelValue:remove")
|
||||||
@Log(title = "特征标签-参数值", businessType = BusinessType.DELETE)
|
@Log(title = "特征标签-参数值", businessType = BusinessType.DELETE)
|
||||||
@PostMapping("/{ids}")
|
@PostMapping("/{id}")
|
||||||
public AjaxResults<Boolean> remove(@PathVariable String[] ids) {
|
public AjaxResults<Boolean> remove(@PathVariable String id) {
|
||||||
return toAjax(pcLabelValueService.removeByIds(Arrays.asList(ids)));
|
pcLabelValueService.delete(id);
|
||||||
|
return AjaxResults.success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -60,6 +60,89 @@ public class PcOutletController extends BasesController {
|
||||||
return AjaxResults.success(list);
|
return AjaxResults.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气排口基本信息")
|
||||||
|
@PostMapping("/pwxk/list")
|
||||||
|
public AjaxResults<IPage<PcOutletVo.PwxkGas>> pwxkList(@RequestBody PcOutletQuery.PwxkGas query) {
|
||||||
|
Page<PcOutletVo.PwxkGas> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkGas> list = pcOutletService.selectPwxkList(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废气排口基本信息导出")
|
||||||
|
@PostMapping("/export/pwxk/list")
|
||||||
|
public void exportPwxkList(@RequestBody PcOutletQuery.PwxkGas query) {
|
||||||
|
Page<PcOutletVo.PwxkGas> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkGas> list = pcOutletService.selectPwxkList(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcOutletVo.PwxkGas.class);
|
||||||
|
ExcelUtil.export(exportMap, "废气排口基本信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水直接排口基本信息")
|
||||||
|
@PostMapping("/pwxk/waterDirect/list")
|
||||||
|
public AjaxResults<IPage<PcOutletVo.PwxkWaterDirect>> waterDirect(@RequestBody PcOutletQuery.PwxkWaterDirect query) {
|
||||||
|
Page<PcOutletVo.PwxkWaterDirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkWaterDirect> list = pcOutletService.selectPwxkWaterDirect(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水直接排口基本信息导出")
|
||||||
|
@PostMapping("/export/pwxk/waterDirect/list")
|
||||||
|
public void exportWaterDirect(@RequestBody PcOutletQuery.PwxkWaterDirect query) {
|
||||||
|
Page<PcOutletVo.PwxkWaterDirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkWaterDirect> list = pcOutletService.selectPwxkWaterDirect(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcOutletVo.PwxkWaterDirect.class);
|
||||||
|
ExcelUtil.export(exportMap, "废水直接排口基本信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水间接排口基本信息")
|
||||||
|
@PostMapping("/pwxk/waterIndirect/list")
|
||||||
|
public AjaxResults<IPage<PcOutletVo.PwxkWaterIndirect>> waterIndirect(@RequestBody PcOutletQuery.PwxkWaterIndirect query) {
|
||||||
|
Page<PcOutletVo.PwxkWaterIndirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkWaterIndirect> list = pcOutletService.selectPwxkWaterIndirect(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-废水直接排口基本信息导出")
|
||||||
|
@PostMapping("/export/pwxk/waterIndirect/list")
|
||||||
|
public void exportWaterIndirect(@RequestBody PcOutletQuery.PwxkWaterIndirect query) {
|
||||||
|
Page<PcOutletVo.PwxkWaterIndirect> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<PcOutletVo.PwxkWaterIndirect> list = pcOutletService.selectPwxkWaterIndirect(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, PcOutletVo.PwxkWaterIndirect.class);
|
||||||
|
ExcelUtil.export(exportMap, "废水间接排口基本信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排水去向下拉选")
|
||||||
|
@GetMapping("/directionDrainage/options")
|
||||||
|
public AjaxResults<List<String>> directionDrainageOptions() {
|
||||||
|
List<PcOutlet> list = pcOutletService.list(new QueryWrapper<PcOutlet>()
|
||||||
|
.select("direction_drainage")
|
||||||
|
.isNotNull("direction_drainage")
|
||||||
|
.groupBy("direction_drainage")
|
||||||
|
.orderByAsc("direction_drainage")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(PcOutlet::getDirectionDrainage).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排放规律下拉选")
|
||||||
|
@GetMapping("/dischargeLaw/options")
|
||||||
|
public AjaxResults<List<String>> dischargeLawOptions() {
|
||||||
|
List<PcOutlet> list = pcOutletService.list(new QueryWrapper<PcOutlet>()
|
||||||
|
.select("discharge_law")
|
||||||
|
.isNotNull("discharge_law")
|
||||||
|
.groupBy("discharge_law")
|
||||||
|
.orderByAsc("discharge_law")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(PcOutlet::getDischargeLaw).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询废气有组织、无组织排口列表
|
* 查询废气有组织、无组织排口列表
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,6 +14,7 @@ import cn.cecep.talroad.vo.query.SupermonitorDrainOutletQuery;
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
@ -25,6 +26,8 @@ import javax.servlet.http.HttpServletResponse;
|
||||||
import java.security.InvalidParameterException;
|
import java.security.InvalidParameterException;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,6 +55,70 @@ public class SupermonitorDrainOutletController extends BasesController
|
||||||
IPage<SupermonitorDrainOutlet> list = supermonitorDrainOutletService.page(page, SupermonitorDrainOutletQuery.createLambdaQueryWrapper(supermonitorDrainOutlet));
|
IPage<SupermonitorDrainOutlet> list = supermonitorDrainOutletService.page(page, SupermonitorDrainOutletQuery.createLambdaQueryWrapper(supermonitorDrainOutlet));
|
||||||
return AjaxResults.success(list);
|
return AjaxResults.success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-入河排口信息")
|
||||||
|
@PostMapping("/rh/pwxk/list")
|
||||||
|
public AjaxResults<IPage<SupermonitorDrainOutletVo.PwxkRh>> rhPwxkList(@RequestBody SupermonitorDrainOutletQuery.PwxkRh query) {
|
||||||
|
Page<SupermonitorDrainOutletVo.PwxkRh> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<SupermonitorDrainOutletVo.PwxkRh> list = supermonitorDrainOutletService.selectRhPwxkList(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-入河排口信息导出")
|
||||||
|
@PostMapping("/rh/export/pwxk/list")
|
||||||
|
public void exportRhPwxkList(@RequestBody SupermonitorDrainOutletQuery.PwxkRh query) {
|
||||||
|
Page<SupermonitorDrainOutletVo.PwxkRh> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<SupermonitorDrainOutletVo.PwxkRh> list = supermonitorDrainOutletService.selectRhPwxkList(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, SupermonitorDrainOutletVo.PwxkRh.class);
|
||||||
|
ExcelUtil.export(exportMap, "入河排口信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-雨水排口信息")
|
||||||
|
@PostMapping("/ys/pwxk/list")
|
||||||
|
public AjaxResults<IPage<SupermonitorDrainOutletVo.PwxkYs>> ysPwxkList(@RequestBody SupermonitorDrainOutletQuery.PwxkYs query) {
|
||||||
|
Page<SupermonitorDrainOutletVo.PwxkYs> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<SupermonitorDrainOutletVo.PwxkYs> list = supermonitorDrainOutletService.selectYsPwxkList(page, query);
|
||||||
|
page.setRecords(list);
|
||||||
|
return AjaxResults.success(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排污许可-雨水排口信息导出")
|
||||||
|
@PostMapping("/ys/export/pwxk/list")
|
||||||
|
public void exportRhPwxkList(@RequestBody SupermonitorDrainOutletQuery.PwxkYs query) {
|
||||||
|
Page<SupermonitorDrainOutletVo.PwxkYs> page = new Page<>(query.getSearchVo().getPageNum(), query.getSearchVo().getPageSize());
|
||||||
|
List<SupermonitorDrainOutletVo.PwxkYs> list = supermonitorDrainOutletService.selectYsPwxkList(page, query);
|
||||||
|
|
||||||
|
Map<String, Object> exportMap = ExcelUtil.getExportMap(list, SupermonitorDrainOutletVo.PwxkYs.class);
|
||||||
|
ExcelUtil.export(exportMap, "雨水排口信息");
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排水去向下拉选")
|
||||||
|
@GetMapping("/drainageTo/options")
|
||||||
|
public AjaxResults<List<String>> drainageToOptions() {
|
||||||
|
List<SupermonitorDrainOutlet> list = supermonitorDrainOutletService.list(new QueryWrapper<SupermonitorDrainOutlet>()
|
||||||
|
.select("drainage_to")
|
||||||
|
.isNotNull("drainage_to")
|
||||||
|
.groupBy("drainage_to")
|
||||||
|
.orderByAsc("drainage_to")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(SupermonitorDrainOutlet::getDrainageTo).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "排放规律下拉选")
|
||||||
|
@GetMapping("/emissionsLaws/options")
|
||||||
|
public AjaxResults<List<String>> emissionsLawsOptions() {
|
||||||
|
List<SupermonitorDrainOutlet> list = supermonitorDrainOutletService.list(new QueryWrapper<SupermonitorDrainOutlet>()
|
||||||
|
.select("emissions_laws")
|
||||||
|
.isNotNull("emissions_laws")
|
||||||
|
.groupBy("emissions_laws")
|
||||||
|
.orderByAsc("emissions_laws")
|
||||||
|
);
|
||||||
|
List<String> collect = list.stream().map(SupermonitorDrainOutlet::getEmissionsLaws).collect(Collectors.toList());
|
||||||
|
return AjaxResults.success(collect);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,39 @@
|
||||||
|
package cn.cecep.talroad.controller.analysis;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.domain.BasModelAnalyse;
|
||||||
|
import cn.cecep.talroad.service.impl.analysis.BasModelAnalyseServiceImpl;
|
||||||
|
import cn.cecep.talroad.vo.analysis.BasModelAnalyseQuery;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
@RestController("/analysis/basModelAnalyse")
|
||||||
|
@RequestMapping("/analysis/basModelAnalyse")
|
||||||
|
@Api(description = "模型分析参数", tags = "模型分析参数",value = "模型分析参数")
|
||||||
|
|
||||||
|
public class BasModelAnalyseController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private BasModelAnalyseServiceImpl basModelAnalyseService;
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation(value = "模型分析参数列表")
|
||||||
|
private AjaxResults<IPage<BasModelAnalyse>> selectList(BasModelAnalyseQuery query) {
|
||||||
|
Page<BasModelAnalyse> page = new Page<>(query.getPageNum(), query.getPageSize());
|
||||||
|
return AjaxResults.success(basModelAnalyseService.page(page, BasModelAnalyseQuery.createWrpper(query)));
|
||||||
|
}
|
||||||
|
@PostMapping("/insert")
|
||||||
|
@ApiOperation(value = "模型分析参数新增")
|
||||||
|
private AjaxResults<Boolean> insert(@RequestBody BasModelAnalyse basModelAnalyse) {
|
||||||
|
basModelAnalyse.setDeleteStatus("0");
|
||||||
|
return AjaxResults.success(basModelAnalyseService.save(basModelAnalyse));
|
||||||
|
}
|
||||||
|
@PostMapping("/update")
|
||||||
|
@ApiOperation(value = "模型分析参数修改")
|
||||||
|
private AjaxResults<Boolean> update(@RequestBody BasModelAnalyse basModelAnalyse) {
|
||||||
|
return AjaxResults.success(basModelAnalyseService.updateById(basModelAnalyse));
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,72 @@
|
||||||
|
package cn.cecep.talroad.controller.analysis;
|
||||||
|
|
||||||
|
import cn.cecep.talroad.common.core.utils.poi.ExcelUtil;
|
||||||
|
import cn.cecep.talroad.common.core.web.domain.AjaxResults;
|
||||||
|
import cn.cecep.talroad.common.log.annotation.Log;
|
||||||
|
import cn.cecep.talroad.common.log.enums.BusinessType;
|
||||||
|
import cn.cecep.talroad.service.analysis.SRaPollManTypeChangeService;
|
||||||
|
import cn.cecep.talroad.vo.analysis.SRaPollManTypeChangeVo;
|
||||||
|
import cn.cecep.talroad.vo.query.analysis.SRaPollManTypeChangeQuery;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* (s_ra_poll_man_type_change)表控制层
|
||||||
|
*
|
||||||
|
* @author xxxxx
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/pollManTypeChange")
|
||||||
|
@Api(tags = "排污许可管理级别变化统计")
|
||||||
|
public class SRaPollManTypeChangeController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private SRaPollManTypeChangeService service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @param query 查询条件
|
||||||
|
* @return 列表数据
|
||||||
|
*/
|
||||||
|
@GetMapping("selectList")
|
||||||
|
@ApiOperation(value = "查询排污许可管理级别变化统计列表")
|
||||||
|
public AjaxResults<IPage<SRaPollManTypeChangeVo>> selectList(SRaPollManTypeChangeQuery query) {
|
||||||
|
return AjaxResults.success(service.selectList(query));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 导出列表
|
||||||
|
*
|
||||||
|
* @param query 查询条件
|
||||||
|
* @return 列表数据
|
||||||
|
*/
|
||||||
|
@PostMapping("exportList")
|
||||||
|
@Log(title = "导出排污许可管理级别变化统计",businessType = BusinessType.EXPORT)
|
||||||
|
@ApiOperation(value = "导出排污许可管理级别变化统计")
|
||||||
|
public void exportList(@RequestBody SRaPollManTypeChangeQuery query, HttpServletResponse response) {
|
||||||
|
query.setPageNum(1);
|
||||||
|
query.setPageSize(Integer.MAX_VALUE);
|
||||||
|
List<SRaPollManTypeChangeVo> records = service.selectList(query).getRecords();
|
||||||
|
ExcelUtil<SRaPollManTypeChangeVo> util=new ExcelUtil<>(SRaPollManTypeChangeVo.class);
|
||||||
|
util.exportExcel(response,records,"导出排污许可管理级别变化统计");
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @param query 查询条件
|
||||||
|
* @return 列表数据
|
||||||
|
*/
|
||||||
|
@GetMapping("selectIndustryPermissionNameList")
|
||||||
|
@ApiOperation(value = "查询行业类别列表")
|
||||||
|
public AjaxResults<List<String>> selectIndustryPermissionNameList(SRaPollManTypeChangeQuery query) {
|
||||||
|
return AjaxResults.success(service.selectIndustryPermissionNameList(query));
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,7 +6,7 @@ import cn.cecep.talroad.domain.AmProblemFiProcess;
|
||||||
import cn.cecep.talroad.service.IAmProblemFiService;
|
import cn.cecep.talroad.service.IAmProblemFiService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
//import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
@ -37,7 +37,7 @@ public class AmProblemFiCallbackController extends BasesController {
|
||||||
|
|
||||||
@ApiOperation(value = "审核结果回调")
|
@ApiOperation(value = "审核结果回调")
|
||||||
@PostMapping(value = "/audit/result")
|
@PostMapping(value = "/audit/result")
|
||||||
// @Disabled
|
@Disabled
|
||||||
public AjaxResults auditResult(@RequestBody @Validated AmProblemFiProcess param) {
|
public AjaxResults auditResult(@RequestBody @Validated AmProblemFiProcess param) {
|
||||||
amProblemFiService.auditResult(param);
|
amProblemFiService.auditResult(param);
|
||||||
return AjaxResults.success();
|
return AjaxResults.success();
|
||||||
|
|
|
@ -14,7 +14,7 @@ import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiImplicitParam;
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
import io.swagger.annotations.ApiImplicitParams;
|
import io.swagger.annotations.ApiImplicitParams;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
//import org.junit.jupiter.api.Disabled;
|
import org.junit.jupiter.api.Disabled;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
@ -51,7 +51,7 @@ public class ERmStationExceedController {
|
||||||
|
|
||||||
@GetMapping("/selectInfo")
|
@GetMapping("/selectInfo")
|
||||||
@ApiOperation("查询站点信息--弃用,使用接口 POST station/detail/air/{id}")
|
@ApiOperation("查询站点信息--弃用,使用接口 POST station/detail/air/{id}")
|
||||||
// @Disabled("使用cn.cecep.talroad.controller.TCodStationController.airStationDetail")
|
@Disabled("使用cn.cecep.talroad.controller.TCodStationController.airStationDetail")
|
||||||
public AjaxResults<ERmStationHour> selectInfo(@RequestParam(name = "stationCode") String stationCode) {
|
public AjaxResults<ERmStationHour> selectInfo(@RequestParam(name = "stationCode") String stationCode) {
|
||||||
QueryWrapper<ERmStationHour> ew = new QueryWrapper<>();
|
QueryWrapper<ERmStationHour> ew = new QueryWrapper<>();
|
||||||
ew.eq(ERmStationHour.COL_STATION_CODE, stationCode);
|
ew.eq(ERmStationHour.COL_STATION_CODE, stationCode);
|
||||||
|
|
Loading…
Reference in New Issue