package com.mcwl.communityCenter.mapper; import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.mcwl.communityCenter.domain.Community; import com.mcwl.communityCenter.domain.Question; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import javax.validation.constraints.NotNull; @Mapper public interface QuestionMapper extends BaseMapper { @InterceptorIgnore(tenantLine = "true") Page list(Page page, @NotNull(message = "租户不能为空") @Param("tenantId") Long tenantId, @NotNull(message = "社区不能为空") @Param("communityId") Long communityId); @InterceptorIgnore(tenantLine = "true") Question selectByIdAndTenantIdAndCommunityId(@Param("id") Long id, @Param("tenantId") Long tenantId, @Param("communityId") Long communityId); @InterceptorIgnore(tenantLine = "true") Page listImage(Page page, @NotNull(message = "租户不能为空") @Param("tenantId") Long tenantId, @NotNull(message = "社区不能为空") @Param("communityId") Long communityId); }