SysDeviceMapper.java 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. package com.xunmei.system.mapper;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5. import com.xunmei.system.api.domain.SysDevice;
  6. import com.xunmei.system.vo.area.AccessType;
  7. import org.apache.ibatis.annotations.MapKey;
  8. import org.apache.ibatis.annotations.Param;
  9. import org.springframework.stereotype.Component;
  10. /**
  11. * 【请填写功能名称】Mapper接口
  12. *
  13. * @author xunmei
  14. * @date 2023-08-22
  15. */
  16. @Component
  17. public interface SysDeviceMapper extends BaseMapper<SysDevice> {
  18. /**
  19. * 查询【请填写功能名称】
  20. *
  21. * @param id 【请填写功能名称】主键
  22. * @return 【请填写功能名称】
  23. */
  24. SysDevice selectSysDeviceById(Long id);
  25. List<Long> selectVideoChannelByMonitorId(Long monitorId);
  26. /**
  27. * 根据机构查出所有的视频主机
  28. *
  29. * @param orgId
  30. * @return
  31. */
  32. List<SysDevice> getHostByOrgId(Long orgId);
  33. /**
  34. *
  35. * @param orgId
  36. * @param videoId
  37. * @return
  38. */
  39. List<AccessType> getAccessByVideo(@Param("videoId") Long videoId,@Param("taskId") Long taskId);
  40. /**
  41. * 查询【请填写功能名称】列表
  42. *
  43. * @param sysDevice 【请填写功能名称】
  44. * @return 【请填写功能名称】集合
  45. */
  46. List<SysDevice> selectSysDeviceList(SysDevice sysDevice);
  47. /**
  48. * 新增【请填写功能名称】
  49. *
  50. * @param sysDevice 【请填写功能名称】
  51. * @return 结果
  52. */
  53. int insertSysDevice(SysDevice sysDevice);
  54. /**
  55. * 修改【请填写功能名称】
  56. *
  57. * @param sysDevice 【请填写功能名称】
  58. * @return 结果
  59. */
  60. int updateSysDevice(SysDevice sysDevice);
  61. /**
  62. * 删除【请填写功能名称】
  63. *
  64. * @param id 【请填写功能名称】主键
  65. * @return 结果
  66. */
  67. int deleteSysDeviceById(Long id);
  68. /**
  69. * 批量删除【请填写功能名称】
  70. *
  71. * @param ids 需要删除的数据主键集合
  72. * @return 结果
  73. */
  74. int deleteSysDeviceByIds(Long[] ids);
  75. }