package cn.besteam.modules.report.controller;
|
|
import cn.besteam.common.api.vo.Result;
|
import cn.besteam.modules.report.biz.RegulatoryStatisticalBiz;
|
import cn.besteam.modules.report.dto.CollectRecordSummaryDTO;
|
import cn.besteam.modules.report.dto.CollectionWarningLevelDTO;
|
import cn.besteam.modules.report.dto.MedicalReportDTO;
|
import cn.besteam.modules.report.dto.ReportCollectionAmendantDTO;
|
import cn.besteam.modules.report.vo.CollectionWarningLevelReportVO;
|
import cn.besteam.modules.report.vo.DepartmentCollectionAmendantReportVO;
|
import cn.besteam.modules.report.vo.DepartmentReportVO;
|
import cn.besteam.modules.report.vo.MedicalReportVO;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.servlet.http.HttpServletResponse;
|
import java.io.IOException;
|
|
@RestController
|
@RequestMapping(value = "/regulatory")
|
@Slf4j
|
@Api(description = "监管统计")
|
public class RegulatoryStatisticalController {
|
|
@Autowired
|
private RegulatoryStatisticalBiz reportBiz;
|
|
|
@GetMapping("/getCollectionAmendantRecordReportList")
|
@ApiOperation("区域产废修改统计")
|
public Result<DepartmentCollectionAmendantReportVO> getCollectionAmendantRecordReportList(ReportCollectionAmendantDTO dto) {
|
|
return Result.ok(reportBiz.getCollectionAmendantRecordReportList(dto));
|
}
|
|
|
@GetMapping("/exportCollectionAmendantReport")
|
@ApiOperation(value = "导出修改记录报表")
|
public void exportCollectionAmendantReport(HttpServletResponse response, ReportCollectionAmendantDTO dto) throws IOException {
|
|
reportBiz.exportCollectionAmendantReport(response, dto);
|
}
|
|
@GetMapping("/getHospitalReportList")
|
@ApiOperation("医疗机构统计")
|
public Result<MedicalReportVO> getMedicalReportList(MedicalReportDTO dto) {
|
|
return Result.ok(reportBiz.getMedicalReportList(dto));
|
}
|
|
@GetMapping("/exportHospitalReport")
|
@ApiOperation(value = "导出医疗机构统计")
|
public void exportHospitalReport(HttpServletResponse response, MedicalReportDTO dto) throws IOException {
|
|
reportBiz.exportHospitalReport(response, dto);
|
}
|
|
@GetMapping("/getOrganizationReportList")
|
@ApiOperation("医院产废、区域产废(产废统计)【统计】")
|
public Result<DepartmentReportVO> getOrganizationReportList(CollectRecordSummaryDTO dto) {
|
if(dto.getStyleTpl() == 1){//区域
|
return Result.ok(reportBiz.getRegionReportList(dto));
|
}else if(dto.getStyleTpl() == 2){//医院
|
return Result.ok(reportBiz.getHospitalReportList(dto));
|
}
|
return null;
|
}
|
|
@GetMapping("/getOrganizationStatementList")
|
@ApiOperation("医院产废、区域产废(产废报表)【报表】")
|
public Result<DepartmentReportVO> getOrganizationStatementList(CollectRecordSummaryDTO dto) {
|
if(dto.getStyleTpl() == 1){//区域
|
return Result.ok(reportBiz.getRegionStatementList(dto));
|
}else if(dto.getStyleTpl() == 2){//医院
|
return Result.ok(reportBiz.getHospitalStatementList(dto));
|
}
|
return null;
|
}
|
|
@GetMapping("/exportOrganizationReport")
|
@ApiOperation(value = "医院产废、区域产废(产废统计)【统计】-----导出")
|
public void exportOrganizationReport(HttpServletResponse response, CollectRecordSummaryDTO dto) throws IOException {
|
|
reportBiz.exportDepartmentReport(response, dto,1);
|
}
|
|
@GetMapping("/exportOrganizationStatement")
|
@ApiOperation(value = "医院产废、区域产废(产废报表)【报表】-----导出")
|
public void exportOrganizationStatement(HttpServletResponse response, CollectRecordSummaryDTO dto) throws IOException {
|
|
reportBiz.exportDepartmentReport(response, dto,2);
|
}
|
|
@GetMapping("/getCollectionWarningReportList")
|
@ApiOperation("预警级别统计、预警类型统计【统计】")
|
public Result<CollectionWarningLevelReportVO> getCollectionWarningReportList(CollectionWarningLevelDTO dto) {
|
if(dto.getStyleTpl() == 1){//区域
|
return Result.ok(reportBiz.getWarningRegionLevelReportList(dto));
|
}else if(dto.getStyleTpl() == 2){//医院
|
return Result.ok(reportBiz.getWarningHospitalLevelReportList(dto));
|
}
|
return null;
|
}
|
|
@GetMapping("/exportCollectionWarningReport")
|
@ApiOperation(value = "预警级别、预警类型【统计】----导出")
|
public void exportCollectionWarningLevelReport(HttpServletResponse response, CollectionWarningLevelDTO dto) throws IOException {
|
|
reportBiz.exportCollectionWarningLevelReport(response, dto,1);
|
}
|
|
@GetMapping("/getCollectionWarningStatementList")
|
@ApiOperation("预警级别、预警类型【报表】")
|
public Result<CollectionWarningLevelReportVO> getCollectionWarningStatementList(CollectionWarningLevelDTO dto) {
|
if(dto.getStyleTpl() == 1){//区域
|
return Result.ok(reportBiz.getWarningRegionLevelStatementList(dto));
|
}else if(dto.getStyleTpl() == 2){//医院
|
return Result.ok(reportBiz.getWarningHospitalLevelStatementList(dto));
|
}
|
return null;
|
}
|
|
@GetMapping("/exportCollectionWarningStatement")
|
@ApiOperation("预警级别、预警类型【报表】----导出")
|
public void exportCollectionWarningStatement(HttpServletResponse response, CollectionWarningLevelDTO dto) throws IOException {
|
reportBiz.exportCollectionWarningLevelReport(response, dto ,2);
|
}
|
}
|