123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- 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<DeviceEntity> devices);
- /**
- * 单条删除设备
- * @return
- */
- Integer deleteById(Integer id);
- /**
- * 修改设备信息
- * @return
- */
- Integer update(DeviceEntity deviceEntity);
- /**
- * 查询设备信息
- * @return
- */
- List<DeviceEntity> selectList(DeviceDto deviceDto);
- /**
- * 分页查询
- * @return
- */
- IPage<DeviceDto> selectPage(IPage<DeviceDto> page, DeviceDto deviceDto);
- }
|