package com.bonus.canteen.core.bus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.bus.model.BusDeviceInfo;
import com.bonus.canteen.core.bus.vo.BusDeviceInfoVO;
import com.bonus.canteen.core.bus.vo.MacBusSceneVO;
import com.bonus.canteen.core.customer.dto.CustAccTempQueryDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BusDeviceInfoMapper extends BaseMapper<BusDeviceInfo> {
   Page<BusDeviceInfoVO> queryPageBusDeviceInfo(Page page, @Param("keyword") String keyword);

   BusDeviceInfoVO queryBusDeviceInfoDetail(@Param("deviceId") Long content);

   MacBusSceneVO queryMacBusSceneByTimeSize(@Param("machineSn") String machineSn, @Param("custAccTempQueryDto") CustAccTempQueryDto custAccTempQueryDto);

   MacBusSceneVO queryMacBusSceneByTimeSizeBetween(@Param("custAccTempQueryDto") CustAccTempQueryDto custAccTempQueryDto);
}
