医院废弃物信息化管理平台
“mitao”
2025-12-24 3763145f34d7706923d55edc32f5cfbc8bc08b92
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
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);
    }
}