sinake
2026-09-15 ba654712582992ce3477adb75787340cd9b6707b
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
package com.ruoyi.web.controller.project;
 
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.project.domain.ServiceTotals;
import com.ruoyi.project.service.iServiceTotalsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
@Api(description = "opo统计",tags = {"opo统计"})
@RestController
@RequestMapping("/opo/totals")
public class ServiceTotalsController extends BaseController
    {
        @Autowired
        private iServiceTotalsService service;
 
        @ApiOperation("案例趋势")
        @PostMapping("/caseTrend")
        public Result caseTrend(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseTrend(totals);
            return Result.success(list);
        }
 
        @ApiOperation("案例趋势月份")
        @PostMapping("/caseTrendMoon")
        public Result caseTrendMoon(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseTrendMoon(totals);
            return Result.success(list);
        }
 
        @ApiOperation("案例趋势区域")
        @PostMapping("/caseTrendArea")
        public Result caseTrendArea(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseTrendArea(totals);
            return Result.success(list);
        }
 
        @ApiOperation("捐献器官统计明细")
        @PostMapping("/organ")
        public Result organ(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.organ(totals);
            return Result.success(list);
        }
 
        @ApiOperation("器官获取/移植趋势")
        @PostMapping("/organMoon")
        public Result organMoon(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.organMoon(totals);
            return Result.success(list);
        }
 
        @ApiOperation("器官类型分布")
        @PostMapping("/organType")
        public Result organType(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.organType(totals);
            return Result.success(list);
        }
 
        @ApiOperation("捐献者年龄性别分布")
        @PostMapping("/caseSex")
        public Result caseSex(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseSex(totals);
            return Result.success(list);
        }
 
        @ApiOperation("平均年龄")
        @PostMapping("/caseAvgAge")
        public Result caseAvgAge(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseAvgAge(totals);
            return Result.success(list);
        }
 
        @ApiOperation("性别与血型分布")
        @PostMapping("/caseBloodType")
        public Result caseBloodType(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotals> list = service.caseBloodType(totals);
            return Result.success(list);
        }
}