| | |
| | | package com.sinata.web.controller.backend; |
| | | |
| | | import com.sinata.common.core.domain.R; |
| | | import com.sinata.system.domain.MedicalWasteStaticsVO; |
| | | import com.sinata.system.domain.SysDepartment; |
| | | import com.sinata.system.domain.query.DisposalReportQuery; |
| | | import com.sinata.system.domain.query.HospitalReportQuery; |
| | | import com.sinata.system.domain.query.TransformQuery; |
| | |
| | | import com.sinata.system.service.biz.StaticsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | |
| | | import javax.validation.Valid; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | @RestController |
| | | @Api(tags = {"统计分析相关接口"}) |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/statics") |
| | | @RequestMapping("/backend/statics") |
| | | public class StaticsController { |
| | | private final StaticsService staticsService; |
| | | |
| | | /** |
| | | * 机构分布-获取机构列表 |
| | | * |
| | | * @param type 1:全部 2:医院 3:处置单位 |
| | | * @return |
| | | */ |
| | | //@ApiOperation("机构分布-获取机构列表 1:全部 2:医院 3:处置单位") |
| | | @GetMapping(value = "/departmentList/{type}") |
| | | public R<List<SysDepartment>> departmentList(@ApiParam(name = "type", value = "机构类型", required = true) @PathVariable(value = "type") Integer type) { |
| | | return R.ok(staticsService.departmentList(type)); |
| | | } |
| | | |
| | | //@ApiOperation("医疗监管-医废统计") |
| | | @GetMapping("/medicalWaste") |
| | | public R<MedicalWasteStaticsVO> medicalWaste() { |
| | | return R.ok(staticsService.medicalWaste()); |
| | | } |
| | | |
| | | /** |
| | | * 医院报表 |