1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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<Map<String, Object>> getFiveMinutesSensorData(Map<String, Object> map) {
        return historyFiveMinutelyMapper.getFiveMinutesSensorData(map);
    }
 
    @Override
    public int insertHistoryFiveMinutely(List<Map<String, Object>> list, String yearAndMonth) {
        return historyFiveMinutelyMapper.insertHistoryFiveMinutely(list,yearAndMonth);
    }
 
    @Override
    public void createHistoryFiveMinutelyTable(String yearAndMonth) {
        historyFiveMinutelyMapper.createHistoryFiveMinutely(yearAndMonth);
    }
}