DeviceMapper.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package com.huaxu.dao;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.huaxu.dto.DeviceDto;
  4. import com.huaxu.entity.DeviceEntity;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import java.util.List;
  7. /**
  8. * @description
  9. * @auto wangli
  10. * @data 2020-11-16 11:36
  11. */
  12. @Mapper
  13. public interface DeviceMapper {
  14. /**
  15. * 查询单个设备
  16. * @return
  17. */
  18. DeviceDto selectById(Integer id);
  19. /**
  20. * 添加设备
  21. * @return
  22. */
  23. Integer insert(DeviceEntity deviceEntity);
  24. /**
  25. * 批量插入设备信息
  26. * @param devices
  27. * @return
  28. */
  29. Integer batchInsert(List<DeviceEntity> devices);
  30. /**
  31. * 单条删除设备
  32. * @return
  33. */
  34. Integer deleteById(Integer id);
  35. /**
  36. * 修改设备信息
  37. * @return
  38. */
  39. Integer update(DeviceEntity deviceEntity);
  40. /**
  41. * 查询设备信息
  42. * @return
  43. */
  44. List<DeviceEntity> selectList(DeviceDto deviceDto);
  45. /**
  46. * 分页查询
  47. * @return
  48. */
  49. IPage<DeviceDto> selectPage(IPage<DeviceDto> page, DeviceDto deviceDto);
  50. }