lizijie
2021-11-29 d8310f6bc609440fa352c0e5a9436c7c78caa287
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.moral.service.impl;
 
import java.util.List;
import java.util.Map;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.moral.entity.History;
import com.moral.mapper.HistoryMapper;
import com.moral.service.HistoryService;
 
@Service
public class HistoryServiceImpl implements HistoryService {
 
    @Resource
    private HistoryMapper historyMapper;
 
    @Override
    public List<History> selectByMacAndTime(Map<String, Object> parameters) {
        return historyMapper.selectByMacAndTime(parameters);
    }
 
    @Override
    public int insertHistorySpecialTable(Map<String, Object> parameters) {
        return historyMapper.insertHistorySpecialTable(parameters);
    }
 
    @Override
    public int deleteHistoryData(String oldTime) {
        return historyMapper.deleteHistoryData(oldTime);
    }
 
    @Override
    public void deletePartition(String p) {
        historyMapper.deletePartition(p);
    }
 
    @Override
    public void createHistoryTable(String yearMonthDay) {
        historyMapper.createHistoryTable(yearMonthDay);
    }
 
    @Override
    public void dropHistoryTable(String yearMonthDay) {
        historyMapper.dropHistoryTable(yearMonthDay);
    }
}