package com.chinaztt.mes.quality.service;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import com.chinaztt.mes.quality.dto.ApplyPartDTO;
|
import com.chinaztt.mes.quality.dto.ReportMDTO;
|
import com.chinaztt.mes.quality.entity.Report;
|
import com.chinaztt.ztt.common.core.util.R;
|
|
/**
|
* 检测汇报表
|
*
|
* @author cxf
|
* @date 2021-04-06 14:29:39
|
*/
|
public interface ReportService extends IService<Report> {
|
|
boolean removeById(Long id);
|
|
/**
|
* 通过扫码枪创建检测汇报(自动创建检测汇报、检测汇报零件、检测汇报样品、检测项目)
|
* @param reportMDTO
|
* @return
|
*/
|
R saveFamily(ReportMDTO reportMDTO);
|
|
/**
|
* 提交检测汇报
|
* @param id
|
* @return
|
*/
|
R submit(Long id);
|
|
R submitV2(Long id);
|
|
/**
|
* 取消提交检测汇报
|
* @param id
|
* @return
|
*/
|
R cancelSubmit(Long id);
|
|
R cancelSubmitV2(Long id);
|
|
/**
|
* 根据检测汇报主表id判断检测汇报是否提交
|
* @param id
|
* @return
|
*/
|
boolean isApplyReportIsSubmitByReportId(Long id);
|
|
ApplyPartDTO createReport(Long applyPartId, String applyType, String reportPerson);
|
}
|