package cn.cslg.report.mapper;

import cn.cslg.report.common.model.dto.PatentQueryFieldSourceDTO;
import cn.cslg.report.common.model.vo.PatentQueryFieldSourceVO;
import cn.cslg.report.entity.CompareFiles;
import cn.cslg.report.entity.ReportField;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ReportFieldMapper extends BaseMapper<ReportField> {
    List<ReportField> find(@Param("reportId") int reportId,@Param("id") int id);
    int deleteReportId(@Param("reportId") int reportId,@Param("id") int id);
    int updateReportId(ReportField reportField);
    IPage<PatentQueryFieldSourceDTO> getPatentQuerySourcePageList(Page<ReportField> page, @Param("params") PatentQueryFieldSourceVO params, @Param("ids") List<Integer> patentIds);
}
