package com.xinyilu.system.service.kindergartenCheckReport;

import com.xinyilu.common.core.domain.AjaxResult;
import com.xinyilu.system.domain.dto.KindergartenCheckReportDTO;
import com.xinyilu.system.domain.dto.KindergartenExamineAndApproveDTO;
import com.xinyilu.system.domain.dto.UploadKindergartenCheckReportDTO;
import com.xinyilu.system.domain.kindergartenCheckReport.KindergartenCheckReport;

import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * 幼儿园检测报告Service接口
 *
 * @author xinyilu
 * @date 2022-09-22
 */
public interface IKindergartenCheckReportService {
    /**
     * 查询幼儿园检测报告
     *
     * @param id 幼儿园检测报告主键
     * @return 幼儿园检测报告
     */
    public KindergartenCheckReport selectKindergartenCheckReportById(Long id);

    /**
     * 查询幼儿园检测报告列表
     *
     * @param kindergartenCheckReport 幼儿园检测报告
     * @return 幼儿园检测报告集合
     */
    public List<KindergartenCheckReportDTO> selectKindergartenCheckReportList(KindergartenCheckReportDTO kindergartenCheckReport);

    /**
     * 查询幼儿园检测报告未审核报告
     *
     * @param batchCode 幼儿园检测报告
     * @return 幼儿园检测报告集合
     */
    public List<KindergartenExamineAndApproveDTO> selectKindergartenCheckReportListAll(String batchCode);

    /**
     * 新增幼儿园检测报告
     *
     * @param kindergartenCheckReport 幼儿园检测报告
     * @return 结果
     */
    public int insertKindergartenCheckReport(KindergartenCheckReport kindergartenCheckReport);

    /**
     * 修改幼儿园检测报告
     *
     * @param kindergartenCheckReport 幼儿园检测报告
     * @return 结果
     */
    AjaxResult updateKindergartenCheckReport(KindergartenCheckReport kindergartenCheckReport);

    /**
     * 批量删除幼儿园检测报告
     *
     * @param ids 需要删除的幼儿园检测报告主键集合
     * @return 结果
     */
    public int deleteKindergartenCheckReportByIds(Long[] ids);


    /**
     * 下载幼儿园检测报告
     *
     * @param id 需要下载的幼儿园检测报告
     * @return 结果
     */
    public void downloadReport(Long id, HttpServletResponse response);

    /**
     * 删除幼儿园检测报告信息
     *
     * @param id 幼儿园检测报告主键
     * @return 结果
     */
    int deleteKindergartenCheckReportById(Long id);

    /**
     * 判断幼儿园检测报告是否存在
     *
     * @param kindergartenId 幼儿园id
     * @param batchCode      批次编号
     * @return 是否存在结果
     */
    AjaxResult existKindergartenCheckReport(Long kindergartenId, String batchCode);

    /**
     * 幼儿园检测报告上传接口
     *
     * @param checkReportDTO 输入参数
     * @return 上传结果
     * @throws Exception 异常信息
     */
    AjaxResult uploadKindergartenCheckReport(UploadKindergartenCheckReportDTO checkReportDTO) throws Exception;
}
