sinake
2026-09-21 ca29e025563fb430861d191d11dcd226b4e8e4d7
ruoyi-project/src/main/java/com/ruoyi/project/service/impl/ServiceTotalsServiceImp.java
@@ -2,6 +2,7 @@
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;
@@ -21,7 +22,7 @@
     *
     */
    @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;
@@ -38,7 +39,7 @@
     *
     */
    @Override
    public List<ServiceTotals> caseTrendMoon(ServiceTotals totals) {
    public List<ServiceTotalsTrend> caseTrendMoon(ServiceTotals totals) {
        return mapper.caseTrendMoon(totals);
    }
@@ -47,7 +48,7 @@
     *
     */
    @Override
    public List<ServiceTotals> caseTrendArea(ServiceTotals totals) {
    public List<ServiceTotalsTrend> caseTrendArea(ServiceTotals totals) {
        return mapper.caseTrendArea(totals);
    }
@@ -56,8 +57,8 @@
     *
     */
    @Override
    public List<ServiceTotals> organ(ServiceTotals totals) {
        return mapper.caseTrendArea(totals);
    public List<ServiceTotalsOrgan> organ(ServiceTotals totals) {
        return mapper.organ(totals);
    }
    /**
@@ -65,8 +66,8 @@
     *
     */
    @Override
    public List<ServiceTotals> organMoon(ServiceTotals totals) {
        return mapper.caseTrendArea(totals);
    public List<ServiceTotalsOrgan> organMoon(ServiceTotals totals) {
        return mapper.organMoon(totals);
    }
    /**
@@ -74,8 +75,8 @@
     *
     */
    @Override
    public List<ServiceTotals> organType(ServiceTotals totals) {
        return mapper.caseTrendArea(totals);
    public List<ServiceTotalsOrgan> organType(ServiceTotals totals) {
        return mapper.organType(totals);
    }
    /**
@@ -83,8 +84,8 @@
     *
     */
    @Override
    public List<ServiceTotals> caseSex(ServiceTotals totals) {
        return mapper.caseTrendArea(totals);
    public List<ServiceTotalsSex> caseSex(ServiceTotals totals) {
        return mapper.caseSex(totals);
    }
    /**
@@ -93,15 +94,69 @@
     */
    @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);
    }
    /**
     * 器管移植总统计
     *
     */
    @Override
    public List<ServiceTotalsOrganTotals> organTotals(ServiceTotals totals) {
        return mapper.organTotals(totals);
    }
    /**
     * 捐献器官统计明细列表
     *
     */
    @Override
    public List<organList> organList(ServiceTotals totals) {
        return mapper.organList(totals);
    }
    /**
     * 捐献器官统计明细数量
     *
     */
    @Override
    public Long organCount(ServiceTotals totals) {
        return mapper.organCount(totals);
    }
}