package com.moral.service.impl; 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 private HistoryFiveMinutelyMapper historyFiveMinutelyMapper; @Override public List> getFiveMinutesSensorData(Map map) { return historyFiveMinutelyMapper.getFiveMinutesSensorData(map); } @Override public int insertHistoryFiveMinutely(List> list, String yearAndMonth) { return historyFiveMinutelyMapper.insertHistoryFiveMinutely(list,yearAndMonth); } @Override public void createHistoryFiveMinutelyTable(String yearAndMonth) { historyFiveMinutelyMapper.createHistoryFiveMinutely(yearAndMonth); } }