| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.project.domain.ServiceTotals; |
| | | import com.ruoyi.project.domain.vo.*; |
| | | import com.ruoyi.project.mapper.ServiceTotalsMapper; |
| | | import com.ruoyi.project.service.iServiceTotalsService; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseTrend(ServiceTotals totals) { |
| | | public List<ServiceTotalsTrend> caseTrend(ServiceTotals totals) { |
| | | if(ObjectUtils.isNotEmpty(totals.getAgeGroup())){ |
| | | switch (totals.getAgeGroup()) { |
| | | case "1": totals.setAgeGroup(" and age<=17 "); break; |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseTrendMoon(ServiceTotals totals) { |
| | | public List<ServiceTotalsTrend> caseTrendMoon(ServiceTotals totals) { |
| | | return mapper.caseTrendMoon(totals); |
| | | } |
| | | |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseTrendArea(ServiceTotals totals) { |
| | | public List<ServiceTotalsTrend> caseTrendArea(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | } |
| | | |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> organ(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | public List<ServiceTotalsOrgan> organ(ServiceTotals totals) { |
| | | return mapper.organ(totals); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> organMoon(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | public List<ServiceTotalsOrgan> organMoon(ServiceTotals totals) { |
| | | return mapper.organMoon(totals); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> organType(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | public List<ServiceTotalsOrgan> organType(ServiceTotals totals) { |
| | | return mapper.organType(totals); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseSex(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | public List<ServiceTotalsSex> caseSex(ServiceTotals totals) { |
| | | return mapper.caseSex(totals); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseAvgAge(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | return mapper.caseAvgAge(totals); |
| | | } |
| | | /** |
| | | * 性别与血型分布 |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotals> caseBloodType(ServiceTotals totals) { |
| | | return mapper.caseTrendArea(totals); |
| | | public List<ServiceTotalsBood> caseBloodType(ServiceTotals totals) { |
| | | return mapper.caseBloodType(totals); |
| | | } |
| | | |
| | | /** |
| | | * 性别与血型分布 |
| | | * |
| | | */ |
| | | @Override |
| | | public List<ServiceTotalsTotal> totals(ServiceTotals totals) { |
| | | return mapper.totals(totals); |
| | | } |
| | | |
| | | /** |
| | | * 案例明细列表 |
| | | * |
| | | */ |
| | | @Override |
| | | public List<trendList> trendList(ServiceTotals totals) { |
| | | return mapper.trendList(totals); |
| | | } |
| | | |
| | | /** |
| | | * 案例明细数量 |
| | | * |
| | | */ |
| | | @Override |
| | | public Long trendCount(ServiceTotals totals) { |
| | | return mapper.trendCount(totals); |
| | | } |
| | | |
| | | } |