luodangjia
2025-01-07 d0542b6f8b7ead9cea467f12d989eaabb8ec6e60
medicalWaste-admin/src/main/java/com/sinata/web/controller/screen/ScreenController.java
@@ -2,6 +2,7 @@
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;
@@ -26,7 +27,7 @@
@Api(tags = {"数据大屏相关接口"})
@RestController
@RequiredArgsConstructor
@RequestMapping("/screen")
@RequestMapping("/backend/screen")
public class ScreenController {
    private final ScreenService screenService;
@@ -39,6 +40,18 @@
    @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));
    }
    /**
@@ -74,4 +87,10 @@
    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>>
}