package com.ruoyi.system.service;


import com.ruoyi.system.mapper.SysDeviceVoMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysDeviceVoService {
    @Resource
    public SysDeviceVoMapper sysDeviceVoMapper;
    public boolean insertdevice(String columnName,String value){
        return sysDeviceVoMapper.insertdevice(columnName, value);
    }

    public boolean updatesysdevice(String columnName,String value){
        return sysDeviceVoMapper.updatesysdevice(columnName, value);
    }
//    public boolean insertdevice(String deviceId,String deviceName,String soc,String chargingcapacity,String dischargecapacity,String dateTime,String greenelectricity,String statecharge,String capacitance,String power){
//        return sysDeviceVoMapper.insertdevice(deviceId, deviceName, soc, chargingcapacity, dischargecapacity, dateTime, greenelectricity, statecharge, capacitance, power);
//    }
//
//    public boolean updatesysdevice(String deviceId,String deviceName,String soc,String chargingcapacity,String dischargecapacity,String dateTime,String greenelectricity,String statecharge, String capacitance,String power){
//        return sysDeviceVoMapper.updatesysdevice(deviceId, deviceName, soc, chargingcapacity, dischargecapacity, dateTime, greenelectricity, statecharge, capacitance, power);
//    }
    public Integer selectcount(String deviceId){
        return sysDeviceVoMapper.selectcount(deviceId);
    }

}
