| 1234567891011121314151617181920212223242526272829303132333435 |
- package com.usky.ems.mapper;
- import com.baomidou.mybatisplus.core.mapper.BaseMapper;
- import com.usky.ems.domain.DmpDevice;
- import org.apache.ibatis.annotations.Mapper;
- import org.apache.ibatis.annotations.Param;
- import java.util.List;
- /**
- * <p>
- * 设备信息表 Mapper 接口
- * </p>
- *
- * @author system
- * @since 2024-01-01
- */
- @Mapper
- public interface DmpDeviceMapper extends BaseMapper<DmpDevice> {
- /**
- * 根据网关ID查询网关设备
- * @param tenantId 租户ID
- * @param productCode 产品编码
- * @return 网关设备信息
- */
- List<DmpDevice> selectGatewayByDeviceId(@Param("tenantId") Integer tenantId ,@Param("productCode") String productCode);
- /**
- * 根据网关UUID查询所有子设备
- * @param gatewayUuid 网关UUID
- * @return 子设备列表
- */
- List<DmpDevice> selectDevicesByGatewayUuid(@Param("gatewayUuid") String gatewayUuid);
- }
|