package com.jeeplus.finance.reportCancellApply.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jeeplus.finance.reportCancellApply.domain.ReportCancellApply;
import com.jeeplus.finance.reportCancellApply.service.dto.ReportInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 报告文号报废mapper
 * @author: 王强
 * @create: 2022-11-18 17:35
 **/
@Mapper
public interface ReportCancellApplyMapper extends BaseMapper<ReportCancellApply> {

    /**
     * 查询报告数据集合
     * @param page
     * @param queryWrapper
     * @return
     */
    //@InterceptorIgnore(tenantLine = "true")
    IPage<ReportInfoDto> getList(Page<ReportInfoDto> page, @Param(Constants.WRAPPER) QueryWrapper<ReportInfoDto> queryWrapper, @Param("officeIds") String officeIds);
    @InterceptorIgnore(tenantLine = "true")
    ReportInfoDto queryById(@Param("id") String id);

    /**
     * 查询报告数据集合
     * @param page
     * @param queryWrapper
     * @return
     */
    //@InterceptorIgnore(tenantLine = "true")
    IPage<ReportInfoDto> findList(Page<ReportInfoDto> page, @Param(Constants.WRAPPER) QueryWrapper<ReportInfoDto> queryWrapper);

    @InterceptorIgnore(tenantLine = "true")
    ReportCancellApply selectByArchivedId(String id);

    String queryReportIdByReportNo(String no);

    /**
     * 根据id查询信息
     * @param id
     * @return
     */
    @InterceptorIgnore(tenantLine = "true")
    ReportCancellApply getById(String id);
}
