package com.bonus.canteen.core.device.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bonus.canteen.core.device.door.dto.terminal.DcTerminalVo;
import com.bonus.canteen.core.device.door.dto.terminal.QueryPageDcTerminalDto;
import com.bonus.canteen.core.device.manage.model.DeviceDcTerminal;
import com.bonus.canteen.core.device.manage.model.DeviceInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DeviceDcTerminalMapper extends BaseMapper<DeviceDcTerminal> {
   List<DeviceInfo> getDoUpdateDevices(@Param("terminalIds") List<Long> terminalIds);

   Page<DcTerminalVo> pageByParams(Page<DcTerminalVo> page, @Param("params") QueryPageDcTerminalDto params);
}
