|  |  |  | 
|---|
|  |  |  | package com.moral.api.mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.moral.api.entity.HistoryHourly; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.moral.api.entity.HistoryHourly; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * <p> | 
|---|
|  |  |  | 
|---|
|  |  |  | * @author moral | 
|---|
|  |  |  | * @since 2021-06-28 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface HistoryHourlyMapper { | 
|---|
|  |  |  | public interface HistoryHourlyMapper extends BaseMapper<HistoryHourly> { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void createTable(String timeUnits); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void insertHistoryHourly(List<HistoryHourly> list); | 
|---|
|  |  |  | void createTableComplete(String timeUnits); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void insertHistoryHourly(List<Map<String, Object>> list); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Integer selectCountByTime(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<Map<String, Object>> selectDailyData(Map<String, Object> params); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | void insertHistoryHourlyComplete(@Param("list") List<Map<String, Object>> list, @Param("timeUnits") String timeUnits); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|