|
@ -8,9 +8,11 @@ import org.springframework.stereotype.Service; |
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
import org.springframework.transaction.annotation.Propagation; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
import javax.annotation.Resource; |
|
|
import java.security.PrivateKey; |
|
|
import java.security.PrivateKey; |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@Slf4j |
|
|
@Slf4j |
|
@ -24,6 +26,7 @@ public class StatisticsService implements IStatisticsService{ |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public StatisticsVo.UseNumsVo selResult(StatisticsDto.UseNum param) { |
|
|
public StatisticsVo.UseNumsVo selResult(StatisticsDto.UseNum param) { |
|
|
StatisticsVo.UseNumsVo useNumsVo=new StatisticsVo.UseNumsVo(); |
|
|
StatisticsVo.UseNumsVo useNumsVo=new StatisticsVo.UseNumsVo(); |
|
@ -49,5 +52,28 @@ public class StatisticsService implements IStatisticsService{ |
|
|
useNumsVo.setSigleLast(useNumVosLast); |
|
|
useNumsVo.setSigleLast(useNumVosLast); |
|
|
useNumsVo.setSumLast(sumLast); |
|
|
useNumsVo.setSumLast(sumLast); |
|
|
return useNumsVo; |
|
|
return useNumsVo; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public StatisticsVo.PointTimeList getPointTime(StatisticsDto.Hospital param) { |
|
|
|
|
|
List<StatisticsVo.PointTime> pointTimeCurrent1 = new ArrayList<>(); |
|
|
|
|
|
//当前数据
|
|
|
|
|
|
List<StatisticsVo.PointTime> pointTimeCurrent = statisticsDao.getPointTimeCurrent(param.getId()); |
|
|
|
|
|
for (int i = 0; i <7; i++) { |
|
|
|
|
|
pointTimeCurrent1.add(pointTimeCurrent.get(i)); |
|
|
|
|
|
} |
|
|
|
|
|
//医院数据
|
|
|
|
|
|
List<StatisticsVo.PointTime> pointTimeHospital = statisticsDao.getPointTimeHospital(param.getId()); |
|
|
|
|
|
//国际数据
|
|
|
|
|
|
List<StatisticsVo.PointTime> pointTimeInternation = statisticsDao.getPointTimeInternation(param.getId()); |
|
|
|
|
|
|
|
|
|
|
|
StatisticsVo.PointTimeList pointTimeList = new StatisticsVo.PointTimeList(); |
|
|
|
|
|
pointTimeList.setPointTimeCurrentList(pointTimeCurrent1); |
|
|
|
|
|
pointTimeList.setPointTimeHospital(pointTimeHospital); |
|
|
|
|
|
pointTimeList.setPointTimeInternation(pointTimeInternation); |
|
|
|
|
|
return pointTimeList; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|