package cn.iocoder.yudao.module.inspection.mapper;

import cn.iocoder.yudao.module.inspection.entity.InspectionFileRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 检测文档记录表
 * @Author: 86187
 * @Date: 2025/02/08 11:43
 * @Version: 1.0
 */
@Mapper
public interface InspectionFileRecordMapper extends BaseMapper<InspectionFileRecord> {
    /**
     * 获取检测文档记录
     * @param id
     * @return
     */
    List<InspectionFileRecord> getRecordList(Long id);

    long queryCount(@Param("servicePackageId") String servicePackageId,@Param("startTime") String startTime,  @Param("endTime") String endTime);

    List<InspectionFileRecord> query(@Param("servicePackageId") String servicePackageId, @Param("startTime") String startTime,  @Param("endTime") String endTime);
}
