package com.xueyi.system.device.mapper;

import com.xueyi.common.datasource.annotation.Master;
import com.xueyi.common.web.entity.mapper.BaseMapper;
import com.xueyi.system.api.device.domain.dto.DmDeviceTenantMergeDto;
import com.xueyi.system.api.device.domain.po.DmDeviceTenantMergePo;
import com.xueyi.system.device.domain.query.DmDeviceTenantMergeQuery;
import com.xueyi.tenant.api.source.domain.po.TeSourcePo;
import org.apache.ibatis.annotations.Param;

/**
 * 设备租户（企业）关联管理 数据层
 *
 * @author xueyi
 */
@Master
public interface DmDeviceTenantMergeMapper extends BaseMapper<DmDeviceTenantMergeQuery, DmDeviceTenantMergeDto, DmDeviceTenantMergePo> {
    DmDeviceTenantMergePo selectByDevId(@Param("devId") String devId);
    DmDeviceTenantMergePo selectByDevSn(@Param("devSn") String devSn);

    TeSourcePo selectSourceByTenantId(@Param("tenantId") Long tenantId);
}