package com.huaxu.dao; import com.baomidou.mybatisplus.core.metadata.IPage; import com.huaxu.dto.DeviceDto; import com.huaxu.entity.DeviceEntity; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * @description * @auto wangli * @data 2020-11-16 11:36 */ @Mapper public interface DeviceMapper { /** * 查询单个设备 * @return */ DeviceDto selectById(Integer id); /** * 添加设备 * @return */ Integer insert(DeviceEntity deviceEntity); /** * 批量插入设备信息 * @param devices * @return */ Integer batchInsert(List devices); /** * 单条删除设备 * @return */ Integer deleteById(Integer id); /** * 修改设备信息 * @return */ Integer update(DeviceEntity deviceEntity); /** * 查询设备信息 * @return */ List selectList(DeviceDto deviceDto); /** * 分页查询 * @return */ IPage selectPage(IPage page, DeviceDto deviceDto); }