| | |
| | | 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; |
| | |
| | | |
| | | @ApiOperation("案例趋势") |
| | | @PostMapping("/caseTrend") |
| | | public Result caseTrend(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsTrend>> caseTrend(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.caseTrend(totals); |
| | | List<ServiceTotalsTrend> list = service.caseTrend(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("案例趋势月份") |
| | | @PostMapping("/caseTrendMoon") |
| | | public Result caseTrendMoon(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsTrend>> caseTrendMoon(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.caseTrendMoon(totals); |
| | | List<ServiceTotalsTrend> list = service.caseTrendMoon(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("案例趋势区域") |
| | | @PostMapping("/caseTrendArea") |
| | | public Result caseTrendArea(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsTrend>> caseTrendArea(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.caseTrendArea(totals); |
| | | List<ServiceTotalsTrend> list = service.caseTrendArea(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("捐献器官统计明细") |
| | | @PostMapping("/organ") |
| | | public Result organ(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsOrgan>> organ(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.organ(totals); |
| | | List<ServiceTotalsOrgan> list = service.organ(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("器官获取/移植趋势") |
| | | @PostMapping("/organMoon") |
| | | public Result organMoon(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsOrgan>> organMoon(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.organMoon(totals); |
| | | List<ServiceTotalsOrgan> list = service.organMoon(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("器官类型分布") |
| | | @PostMapping("/organType") |
| | | public Result organType(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsOrgan>> organType(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.organType(totals); |
| | | List<ServiceTotalsOrgan> list = service.organType(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | | @ApiOperation("捐献者年龄性别分布") |
| | | @PostMapping("/caseSex") |
| | | public Result caseSex(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsSex>> caseSex(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.caseSex(totals); |
| | | List<ServiceTotalsSex> list = service.caseSex(totals); |
| | | return Result.success(list); |
| | | } |
| | | |
| | |
| | | |
| | | @ApiOperation("性别与血型分布") |
| | | @PostMapping("/caseBloodType") |
| | | public Result caseBloodType(@RequestBody ServiceTotals totals) |
| | | public Result<List<ServiceTotalsBood>> caseBloodType(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<ServiceTotals> list = service.caseBloodType(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); |
| | | } |
| | | |
| | | @ApiOperation("捐献器官统计明细列表") |
| | | @PostMapping("/organList") |
| | | public Result<List<organList>> organList(@RequestBody ServiceTotals totals) |
| | | { |
| | | List<organList> list = service.organList(totals); |
| | | Long count=service.organCount(totals); |
| | | return Result.success(count,list); |
| | | } |
| | | } |