package com.jiayue.biz.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.jiayue.biz.domain.ProphaseWeatherData; import com.jiayue.biz.domain.ProphaseWeatherDataOrg; import com.jiayue.biz.mapper.ProphaseWeatherDataOrgMapper; import com.jiayue.biz.service.ProphaseWeatherDataOrgService; import org.springframework.stereotype.Service; import java.sql.Timestamp; import java.util.List; @Service public class ProphaseWeatherDataOrgServiceImpl extends ServiceImpl implements ProphaseWeatherDataOrgService { //查询温度平均值、压强平均值、空气密度 public List selectTAveAndPaAveAndAir(String equipmentId, Timestamp startTime, Timestamp endTime){ return baseMapper.selectTAveAndPaAveAndAir(equipmentId,startTime,endTime); } //批量保存 public void insertSplice(List prophaseWeatherDataList,String equipmentId){ baseMapper.insertSplice(prophaseWeatherDataList,equipmentId); } public void insertOne(ProphaseWeatherData prophaseWeatherData){ baseMapper.insertOneWithNew(prophaseWeatherData); } //查询所有数据 public List selectPublicData(String equipmentId, Timestamp startTime, Timestamp endTime) { return baseMapper.selectPublicData(equipmentId, startTime, endTime); } }