|
|
@ -58,21 +58,16 @@ public class StatisticsService implements IStatisticsService{ |
|
|
|
|
|
|
|
@Override |
|
|
|
public StatisticsVo.PointTimeList getPointTime(StatisticsDto.Hospital param) { |
|
|
|
List<Long> pointTimeCurrent1 = new ArrayList<>(); |
|
|
|
//当前数据
|
|
|
|
List<Long> pointTimeCurrent = statisticsDao.getPointTimeCurrent(param.getId()); |
|
|
|
for (int i = 0; i <pointTimeCurrent.size() ; i++) { |
|
|
|
if (i<6){ |
|
|
|
pointTimeCurrent1.add(pointTimeCurrent.get(i+1)-pointTimeCurrent.get(i)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//医院数据
|
|
|
|
List<Long> pointTimeHospital = statisticsDao.getPointTimeHospital(param.getId()); |
|
|
|
//国际数据
|
|
|
|
List<Long> pointTimeInternation = statisticsDao.getPointTimeInternation(param.getId()); |
|
|
|
|
|
|
|
StatisticsVo.PointTimeList pointTimeList = new StatisticsVo.PointTimeList(); |
|
|
|
pointTimeList.setPointTimeCurrentList(pointTimeCurrent1); |
|
|
|
pointTimeList.setPointTimeCurrentList(pointTimeCurrent); |
|
|
|
pointTimeList.setPointTimeHospital(pointTimeHospital); |
|
|
|
pointTimeList.setPointTimeInternation(pointTimeInternation); |
|
|
|
return pointTimeList; |
|
|
|