fengxiang
2018-06-27 55b227d4bc75374bca89f413750d236669571a70
src/main/java/com/moral/mapper/HistoryMapper.java
@@ -1,33 +1,17 @@
package com.moral.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
public interface HistoryMapper{
   String selectValueByMacAndTime(@Param("mac")String mac, @Param("time")Date time);
   List<Map<String, Object>> getAreaAllDataByAccount(Map<String, Object> parameters);
import com.moral.entity.History;
import com.moral.entity.HistoryExample;
import org.apache.ibatis.annotations.Param;
   List<Map<String, Object>> getRegionRankingData(Map<String, Object> parameters);
@Mapper
public interface HistoryMapper extends BaseMapper<History, HistoryExample, Integer> {
   int countByExample(HistoryExample example);
   int deleteByExample(HistoryExample example);
   int insert(History record);
   int insertSelective(History record);
   List<History> selectByExample(HistoryExample example);
   int updateByExampleSelective(@Param("record") History record, @Param("example") HistoryExample example);
   int updateByExample(@Param("record") History record, @Param("example") HistoryExample example);
   Map<String, Double> getDayAQIByDevice(Map<String, Object> parameters);
   List<Map<String, Object>> getAverageByAll(Map<String, Object> parameters);
   List<Map<String, Object>> selectNextLevelRegion(Map<String, Object> parameters);
}