package com.huimv.receiver.eco.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huimv.receiver.eco.entity.HumAndTemDto;
import com.huimv.receiver.eco.entity.SysHumidity;
import com.huimv.receiver.eco.entity.SysTemperature;
import com.huimv.receiver.eco.mapper.SysHumidityMapper;
import com.huimv.receiver.eco.mapper.SysTemperatureMapper;
import com.huimv.receiver.eco.service.ISysHumidityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author astupidcoder
 * @since 2021-11-11
 */
@Service
public class SysHumidityServiceImpl extends ServiceImpl<SysHumidityMapper, SysHumidity> implements ISysHumidityService {

//    @Autowired
//    SysTemperatureMapper temperatureMapper;
//
//    @Override
//    public void saveHumAndTem(HumAndTemDto humAndTemDto) {
//        SysHumidity humidity = humAndTemDto.getHumidity();
//        SysTemperature temperature = humAndTemDto.getTemperature();
//        this.save(humidity);
//        temperatureMapper.insert(temperature);
//    }
}
