医院废弃物信息化管理平台
“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
package cn.besteam.modules.report.controller;
 
import cn.besteam.common.api.vo.Result;
import cn.besteam.modules.medical.dto.MwDataStatisticsDTO;
import cn.besteam.modules.report.biz.IndexBiz;
import cn.besteam.modules.report.vo.IndexScheduleVO;
import cn.besteam.modules.report.vo.IndexVO;
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;
 
@RestController
@RequestMapping(value = "/index")
@Slf4j
@Api(description = "首页")
public class IndexController {
 
    @Autowired
    private IndexBiz indexBiz;
 
    @GetMapping("/getIndex")
    @ApiOperation("指标")
    public Result<IndexVO> getIndex() {
 
        try {
            return Result.ok(indexBiz.getIndex());
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
 
    @GetMapping("/getIndexSchedule")
    @ApiOperation("首页待办")
    public Result<IndexScheduleVO> getIndexSchedule() {
 
        return Result.ok (indexBiz.getIndexSchedule());
    }
 
    @GetMapping("/getTodayRankStatistics")
    @ApiOperation("今日排行榜")
    public Result<?> getTodayRankStatistics(String startTime,String endTime) {
 
        return Result.ok(indexBiz.getTodayRankStatistics(startTime,endTime));
    }
 
    @GetMapping("/getLastSevenDaysStatistics")
    @ApiOperation("最近7日统计")
    public Result<?> getLastSevenDaysStatistics(String startTime,String endTime) {
 
        return Result.ok(indexBiz.getLastSevenDaysStatistics(startTime,endTime));
    }
 
    /**
     * 小程序端首页
     * @param startTime
     * @param endTime
     * @param type :1按天展示,2按月展示
     * @return
     */
    @GetMapping("/getLastSevenDaysStatisticsX")
    @ApiOperation("最近7日统计(医院收集排行榜)")
    public Result<?> getLastSevenDaysStatisticsX(String startTime,String endTime,Integer type) {
 
        return Result.ok(indexBiz.getLastSevenDaysStatisticsX(startTime,endTime,type));
    }
 
 
    /**
     * 数据大屏
     * @return
     */
    @GetMapping("/getDataStatistics")
    @ApiOperation("获取数据大屏数据")
    public Result<MwDataStatisticsDTO> getDataStatistics() {
        return Result.ok(indexBiz.getDataStatistics());
    }
 
}