package com.erp.audit.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.audit.entity.ComplianceReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 合规报告Mapper
 */
@Mapper
public interface ComplianceReportRepository extends BaseMapper<ComplianceReport> {

    /**
     * 分页查询报告
     */
    IPage<ComplianceReport> selectPage(Page<ComplianceReport> page, @Param("tenantId") Long tenantId);

    /**
     * 根据报告编号查询
     */
    ComplianceReport selectByReportNo(@Param("reportNo") String reportNo);
}
