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