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);
|
}
|
}
|