package com.foreverwin.mesnac.quality.service;


import com.foreverwin.mesnac.common.model.InspectionItemDetail;
import com.foreverwin.mesnac.quality.dto.InspectionTaskManageRequest;
import com.foreverwin.mesnac.quality.model.InspectionTaskManageDetail;
import com.foreverwin.mesnac.quality.model.InspectionTaskManage;

import java.util.List;

public interface InspectionTaskManageService {

    /**
     * 查询检验任务清单
     *
     * @param inspectionTaskManageRequest
     * @return
     */
    List<InspectionTaskManage> findInspectionTask(InspectionTaskManageRequest inspectionTaskManageRequest);

    /**
     * 查询检验任务 已经任务检验项目
     *
     * @param inspectionTaskManageRequest
     * @return
     */
    InspectionTaskManage findInspectionTaskAndDetail(InspectionTaskManageRequest inspectionTaskManageRequest);

    /**
     * 查询检验项目的项目清单
     *
     * @param inspectionItemBo
     * @return
     */
    List<InspectionTaskManageDetail> getInspectionItemDetail(String inspectionItemBo);

    /**
     * 查询检验任务的检验项目
     *
     * @param inspectionTaskBo
     * @return
     */
    List<InspectionTaskManageDetail> getInspectionTaskDetail(String inspectionTaskBo);

    /**
     * 不做检验数据录入，直接完成任务，结果为合格
     *
     * @param site
     * @param user
     * @param requestList
     */
    void completeInspectionTask(String site, String user, List<InspectionTaskManageRequest> requestList);

    /**
     * 检验数据保存
     *
     * @param site
     * @param user
     * @param inspectionTaskManage
     */
    void saveInspectionTaskDetail(String site, String user, InspectionTaskManage inspectionTaskManage);
}
