sinake
2026-09-18 c9d33a3083bf4a226e736a447ce920a665409a06
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
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.domain.vo.*;
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<List<ServiceTotalsTrend>> caseTrend(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsTrend> list = service.caseTrend(totals);
            return Result.success(list);
        }
 
        @ApiOperation("案例趋势月份")
        @PostMapping("/caseTrendMoon")
        public Result<List<ServiceTotalsTrend>> caseTrendMoon(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsTrend> list = service.caseTrendMoon(totals);
            return Result.success(list);
        }
 
        @ApiOperation("案例趋势区域")
        @PostMapping("/caseTrendArea")
        public Result<List<ServiceTotalsTrend>> caseTrendArea(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsTrend> list = service.caseTrendArea(totals);
            return Result.success(list);
        }
 
        @ApiOperation("捐献器官统计明细")
        @PostMapping("/organ")
        public Result<List<ServiceTotalsOrgan>> organ(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsOrgan> list = service.organ(totals);
            return Result.success(list);
        }
 
        @ApiOperation("器官获取/移植趋势")
        @PostMapping("/organMoon")
        public Result<List<ServiceTotalsOrgan>> organMoon(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsOrgan> list = service.organMoon(totals);
            return Result.success(list);
        }
 
        @ApiOperation("器官类型分布")
        @PostMapping("/organType")
        public Result<List<ServiceTotalsOrgan>> organType(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsOrgan> list = service.organType(totals);
            return Result.success(list);
        }
 
        @ApiOperation("捐献者年龄性别分布")
        @PostMapping("/caseSex")
        public Result<List<ServiceTotalsSex>> caseSex(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsSex> 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<List<ServiceTotalsBood>> caseBloodType(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsBood> list = service.caseBloodType(totals);
            return Result.success(list);
        }
 
        @ApiOperation("总潜在总完成数统计")
        @PostMapping("/totals")
        public Result<List<ServiceTotalsTotal>> totals(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsTotal> list = service.totals(totals);
            return Result.success(list);
        }
 
        @ApiOperation("案例明细列表")
        @PostMapping("/trendList")
        public Result<List<trendList>> trendList(@RequestBody ServiceTotals totals)
        {
            List<trendList> list = service.trendList(totals);
            Long count=service.trendCount(totals);
            return Result.success(count,list);
        }
 
        @ApiOperation("器管移植总统计")
        @PostMapping("/organTotals")
        public Result<List<ServiceTotalsOrganTotals>> organTotals(@RequestBody ServiceTotals totals)
        {
            List<ServiceTotalsOrganTotals> list = service.organTotals(totals);
            return Result.success(list);
        }
}