DmpDeviceMapper.java 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. package com.usky.ems.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.usky.ems.domain.DmpDevice;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * <p>
  9. * 设备信息表 Mapper 接口
  10. * </p>
  11. *
  12. * @author system
  13. * @since 2024-01-01
  14. */
  15. @Mapper
  16. public interface DmpDeviceMapper extends BaseMapper<DmpDevice> {
  17. /**
  18. * 根据网关ID查询网关设备
  19. * @param tenantId 租户ID
  20. * @param productCode 产品编码
  21. * @return 网关设备信息
  22. */
  23. List<DmpDevice> selectGatewayByDeviceId(@Param("tenantId") Integer tenantId ,@Param("productCode") String productCode);
  24. /**
  25. * 根据网关UUID查询所有子设备
  26. * @param gatewayUuid 网关UUID
  27. * @return 子设备列表
  28. */
  29. List<DmpDevice> selectDevicesByGatewayUuid(@Param("gatewayUuid") String gatewayUuid);
  30. }