1234567891011121314151617181920212223242526272829303132333435 |
- 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<ProphaseWeatherDataOrgMapper, ProphaseWeatherDataOrg> implements ProphaseWeatherDataOrgService {
- //查询温度平均值、压强平均值、空气密度
- public List<ProphaseWeatherData> selectTAveAndPaAveAndAir(String equipmentId, Timestamp startTime, Timestamp endTime){
- return baseMapper.selectTAveAndPaAveAndAir(equipmentId,startTime,endTime);
- }
- //批量保存
- public void insertSplice(List<ProphaseWeatherData> prophaseWeatherDataList,String equipmentId){
- baseMapper.insertSplice(prophaseWeatherDataList,equipmentId);
- }
- public void insertOne(ProphaseWeatherData prophaseWeatherData){
- baseMapper.insertOneWithNew(prophaseWeatherData);
- }
- //查询所有数据
- public List<ProphaseWeatherData> selectPublicData(String equipmentId, Timestamp startTime, Timestamp endTime) {
- return baseMapper.selectPublicData(equipmentId, startTime, endTime);
- }
- }
|