package com.xueyi.system.meeting.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.xueyi.common.datasource.annotation.Isolate;
import com.xueyi.common.web.annotation.TenantIgnore;
import com.xueyi.common.web.entity.mapper.BaseMapper;
import com.xueyi.system.api.meeting.domain.dto.DmMeetingRoomsDto;
import com.xueyi.system.api.meeting.domain.po.DmMeetingRoomsPo;
import com.xueyi.system.meeting.domain.query.DmMeetingRoomsQuery;
import feign.Param;

import java.util.List;

/**
 * 会议室管理 数据层
 *
 * @author xueyi
 */
@Isolate
//@DS("slave")
public interface DmMeetingRoomsMapper extends BaseMapper<DmMeetingRoomsQuery, DmMeetingRoomsDto, DmMeetingRoomsPo> {
    @TenantIgnore(tenantLine = true)
    List<DmMeetingRoomsPo> selectRoomList(DmMeetingRoomsPo po);

    @TenantIgnore(tenantLine = true)
    DmMeetingRoomsPo findById(@Param("id") Long id);
}