ProphaseWeatherDataOrgServiceImpl.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package com.jiayue.biz.service.impl;
  2. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  3. import com.jiayue.biz.domain.ProphaseWeatherData;
  4. import com.jiayue.biz.domain.ProphaseWeatherDataOrg;
  5. import com.jiayue.biz.mapper.ProphaseWeatherDataOrgMapper;
  6. import com.jiayue.biz.service.ProphaseWeatherDataOrgService;
  7. import org.springframework.stereotype.Service;
  8. import java.sql.Timestamp;
  9. import java.util.List;
  10. @Service
  11. public class ProphaseWeatherDataOrgServiceImpl extends ServiceImpl<ProphaseWeatherDataOrgMapper, ProphaseWeatherDataOrg> implements ProphaseWeatherDataOrgService {
  12. //查询温度平均值、压强平均值、空气密度
  13. public List<ProphaseWeatherData> selectTAveAndPaAveAndAir(String equipmentId, Timestamp startTime, Timestamp endTime){
  14. return baseMapper.selectTAveAndPaAveAndAir(equipmentId,startTime,endTime);
  15. }
  16. //批量保存
  17. public void insertSplice(List<ProphaseWeatherData> prophaseWeatherDataList,String equipmentId){
  18. baseMapper.insertSplice(prophaseWeatherDataList,equipmentId);
  19. }
  20. public void insertOne(ProphaseWeatherData prophaseWeatherData){
  21. baseMapper.insertOneWithNew(prophaseWeatherData);
  22. }
  23. //查询所有数据
  24. public List<ProphaseWeatherData> selectPublicData(String equipmentId, Timestamp startTime, Timestamp endTime) {
  25. return baseMapper.selectPublicData(equipmentId, startTime, endTime);
  26. }
  27. }