package com.moral.service.impl; import com.moral.common.util.ValidateUtil; import com.moral.mapper.HistoryFiveMinutelyMapper; import com.moral.service.HistoryFiveMinutelyService; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; import java.util.Map; @Service public class HistoryFiveMinutelyServiceImpl implements HistoryFiveMinutelyService { @Resource HistoryFiveMinutelyMapper historyFiveMinutelyMapper; @Override public List> getFiveMinutesDataByMacsAndTime(Map parameters) { ValidateUtil.notNull(parameters,"查询五分钟数据参数为空"); return historyFiveMinutelyMapper.getFiveMinutesDataByMacsAndTime(parameters); } @Override public Map getFiveMinutesDataByMac(Map parameters) { ValidateUtil.notNull(parameters,"查询五分钟数据参数为空"); return historyFiveMinutelyMapper.getFiveMinutesDataByMac(parameters); } @Override public List> getFiveMinutesSersorDataByMacsAndTime(Map parameters) { ValidateUtil.notNull(parameters,"查询五分钟数据参数为空"); return historyFiveMinutelyMapper.getFiveMinutesSersorDataByMacsAndTime(parameters); } }