package com.junmp.jyzb.mapper;

import com.junmp.jyzb.api.bean.dto.FetchingDataDto.DeviceConfigInfoDto;
import com.junmp.jyzb.api.bean.query.QueryDeviceConfigReq;
import com.junmp.jyzb.api.bean.req.UpdateDeivceConfigReq;
import com.junmp.jyzb.entity.DeviceConfig;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author lxh专属坐骑
* @description 针对表【base_device_config】的数据库操作Mapper
* @createDate 2023-12-19 07:18:22
* @Entity com.junmp.jyzb.entity.DeviceConfig
*/
public interface DeviceConfigMapper extends BaseMapper<DeviceConfig> {



    int showDeviceConfigCount(@Param("req") QueryDeviceConfigReq req);

    List<DeviceConfig> showDeviceConfig(@Param("orgId") Long orgId,
                                        @Param("deviceName") String deviceName,
                                        @Param("deviceCode") String deviceCode,
                                        @Param("pageNo") Long pageNo,
                                        @Param("pageSize") Long pageSize);

    List<String> alignDeviceConfigInfo(@Param("orgId") Long orgId,
                                                    @Param("deviceType") Integer deviceType,
                                                    @Param("date") String date);
}




