package com.ruoyi.system.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface SysDeviceVoMapper {
    @SelectProvider(type = DynamicSqlProvider.class, method = "insertdevice")
    boolean insertdevice(@Param("columnName")String columnName, @Param("value")String value);

    @SelectProvider(type = DynamicSqlProvider.class, method = "updatesysdevice")
    boolean updatesysdevice(@Param("columnName")String columnName, @Param("value")String value);
//
//    boolean insertdevice(@Param("deviceId")String deviceId,
//                         @Param("deviceName")String deviceName,
//                         @Param("soc")String soc,
//                         @Param("chargingcapacity")String chargingcapacity,
//                         @Param("dischargecapacity")String dischargecapacity,
//                         @Param("dateTime")String dateTime,
//                         @Param("greenelectricity")String greenelectricity,
//                         @Param("statecharge")String statecharge,
//                         @Param("capacitance")String capacitance,
//                         @Param("power")String power);
//
//    boolean updatesysdevice(@Param("deviceId")String deviceId,
//                            @Param("deviceName")String deviceName,
//                            @Param("soc")String soc,
//                            @Param("chargingcapacity")String chargingcapacity,
//                            @Param("dischargecapacity")String dischargecapacity,
//                            @Param("dateTime")String dateTime,
//                            @Param("greenelectricity")String greenelectricity,
//                            @Param("statecharge")String statecharge,
//                            @Param("capacitance")String capacitance,
//                            @Param("power")String power);
    Integer selectcount(@Param("deviceId")String deviceId);


}
