package cn.iocoder.yudao.module.mes.service.qc.template;
|
|
import cn.iocoder.yudao.module.mes.controller.admin.qc.ipqc.vo.MesQcIpqcTemplateProcessRespVO;
|
import cn.iocoder.yudao.module.mes.controller.admin.qc.template.vo.MesQcTemplateProcessSaveByTemplateReqVO;
|
import cn.iocoder.yudao.module.mes.controller.admin.qc.template.vo.MesQcTemplateProcessSaveListReqVO;
|
import cn.iocoder.yudao.module.mes.dal.dataobject.qc.template.MesQcTemplateProcessDO;
|
|
import java.util.List;
|
|
/**
|
* MES 质检方案-工序绑定 Service 接口
|
*
|
* @author 超级管理员
|
*/
|
public interface MesQcTemplateProcessService {
|
|
/**
|
* 获取工序绑定的质检方案列表
|
*
|
* @param processId 工序编号
|
* @return 绑定列表
|
*/
|
List<MesQcTemplateProcessDO> getListByProcessId(Long processId);
|
|
/**
|
* 获取质检方案适用的工序列表
|
*
|
* @param templateId 质检方案编号
|
* @return 绑定列表
|
*/
|
List<MesQcTemplateProcessDO> getListByTemplateId(Long templateId);
|
|
/**
|
* 批量保存工序绑定的质检方案(新增、修改、删除差异)
|
*
|
* @param reqVO 保存请求
|
*/
|
void saveList(MesQcTemplateProcessSaveListReqVO reqVO);
|
|
/**
|
* 批量保存质检方案适用的工序(以方案为主体,差异增删)
|
*
|
* @param reqVO 保存请求
|
*/
|
void saveByTemplate(MesQcTemplateProcessSaveByTemplateReqVO reqVO);
|
|
/**
|
* 解析工序的默认质检方案编号
|
*
|
* @param processId 工序编号
|
* @param qcType 质检种类
|
* @return 方案编号,空=未绑定
|
*/
|
Long resolveTemplateId(Long processId, Integer qcType);
|
|
/**
|
* 解析工序的默认质检方案及检测指标字段
|
*
|
* @param processId 工序编号
|
* @param qcType 质检种类
|
* @return 默认方案与指标
|
*/
|
MesQcIpqcTemplateProcessRespVO resolveTemplate(Long processId, Integer qcType);
|
|
/**
|
* 删除质检方案时级联删除工序绑定
|
*
|
* @param templateId 质检方案编号
|
*/
|
void deleteListByTemplateId(Long templateId);
|
|
}
|