package com.moral.mapper; import java.util.List; import java.util.Map; import com.moral.entity.History; import org.apache.ibatis.annotations.Param; public interface HistoryMapper { int insert(History record); int insertSelective(History record); Map getAvgData(Map parameters); Map getMaxAndMinData(Map parameters); List> getSensorData(Map parameters); List> getSensorDataByMac(Map parameters); List> getSensorDataByMacOnce(Map parameters); List> getSensorDataOnce(Map parameters); Map getMinData(Map parameters); List selectByMacAndTime(Map parameters); int insertHistorySpecialTable(Map parameters); int deleteHistoryData(String oldTime); void deletePartition(@Param("p") String p); void createHistoryTable(@Param("yearMonthDay") String yearMonthDay); void dropHistoryTable(@Param("yearMonthDay") String yearMonthDay); History selectLastDataByMac(@Param("yearMonthDay") String yearMonthDay, @Param("mac") String mac); }