package cn.estsh.i3plus.ext.mes.pcn.api.busi;

import cn.estsh.i3plus.ext.mes.pcn.pojo.model.MesPartInspectionInputModel;
import cn.estsh.i3plus.ext.mes.pcn.pojo.model.MesPartInspectionViewModel;
import cn.estsh.i3plus.pojo.mes.bean.MesPartTypeDefect;
import cn.estsh.i3plus.pojo.mes.bean.MesProduceSn;
import io.swagger.annotations.ApiOperation;

import java.util.List;

/**
 * @Description :
 * @Reference :
 * @Author :
 * @CreateDate : 2024-04-26 15:37
 * @Modify:
 **/
public interface IMesInputDefectRecordService {


    @ApiOperation(value = "查询页面信息")
    MesPartInspectionViewModel queryPartInspection(MesPartInspectionInputModel model);


    @ApiOperation(value = "零件类型缺陷类型对应关系信息")
    List<MesPartTypeDefect> queryPartTypeDefect(String serialNumber, String defectLocation, boolean flg, Integer frontBack, String org);

    @ApiOperation(value = "完成质检")
    void savePartInspection(MesPartInspectionInputModel model);

    @ApiOperation(value = "客退品")
    MesProduceSn customerBack(String organizeCode, String sn, String userName);

    @ApiOperation(value = "客退品提交")
    void customerBackCommit(String organizeCode, String sn, String userName);

    @ApiOperation(value = "可疑品录入")
    void saveSusPartInspection(MesPartInspectionInputModel model, String org);
}
