package com.imeeting.mapper.biz; import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.imeeting.entity.biz.Meeting; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import java.time.LocalDateTime; @Mapper public interface MeetingMapper extends BaseMapper { @InterceptorIgnore(tenantLine = "true") @Select("SELECT * FROM biz_meetings WHERE id = #{id} AND is_deleted = 0") Meeting selectByIdIgnoreTenant(@Param("id") Long id); @InterceptorIgnore(tenantLine = "true") @Select(""" """) Long countByDeviceSince(@Param("tenantId") Long tenantId, @Param("deviceCode") String deviceCode, @Param("resetAt") LocalDateTime resetAt); @InterceptorIgnore(tenantLine = "true") @Select(""" """) Long sumMeetingDurationSecondsByDeviceSince(@Param("tenantId") Long tenantId, @Param("deviceCode") String deviceCode, @Param("resetAt") LocalDateTime resetAt); }