| | |
| | | |
| | | import com.sinata.common.core.domain.R; |
| | | import com.sinata.system.domain.MedicalWasteStaticsVO; |
| | | import com.sinata.system.domain.vo.DepartmentTagInfoVO; |
| | | import com.sinata.system.domain.vo.ScreenDepartmentVO; |
| | | import com.sinata.system.domain.vo.TodayMedicalWastePieVO; |
| | | import com.sinata.system.domain.vo.TotalCollectWeightByTypeVO; |
| | |
| | | @Api(tags = {"数据大屏相关接口"}) |
| | | @RestController |
| | | @RequiredArgsConstructor |
| | | @RequestMapping("/screen") |
| | | @RequestMapping("/backend/screen") |
| | | public class ScreenController { |
| | | private final ScreenService screenService; |
| | | |
| | |
| | | @GetMapping(value = "/departmentList") |
| | | public R<List<ScreenDepartmentVO>> departmentList() { |
| | | return R.ok(screenService.departmentList()); |
| | | } |
| | | |
| | | /** |
| | | * 获取单位标签信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @ApiOperation("获取单位标签信息") |
| | | @GetMapping("/getTagInfo/{id}") |
| | | public R<DepartmentTagInfoVO> getTagInfo(@ApiParam(name = "id", value = "单位id", required = true) @PathVariable("id") Long id) { |
| | | return R.ok(screenService.getTagInfo(id)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R<TotalCollectWeightByTypeVO> totalCollectWeightByType(@ApiParam(name = "type", value = "统计类型 1:按周统计 2:按月统计") @PathVariable("type") Integer type) { |
| | | return R.ok(screenService.totalCollectWeightByType(type)); |
| | | } |
| | | // /** |
| | | // * 医疗机构收集情况 |
| | | // */ |
| | | // @ApiOperation("医疗机构收集情况") |
| | | // @GetMapping("/medicalInstitutionCollectList") |
| | | // public R<List<MedicalInstitutionCollectListVO>> |
| | | } |