李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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);
}