李林
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
package com.chinaztt.mes.quality.service;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chinaztt.mes.quality.dto.*;
import com.chinaztt.mes.quality.entity.Result;
import com.chinaztt.mes.warehouse.entity.Stock;
 
import java.sql.Timestamp;
import java.util.List;
import java.util.Map;
 
/**
 * 检测结果表
 *
 * @author cxf
 * @date 2021-04-21 13:21:49
 */
public interface ResultService extends IService<Result> {
 
    /**
     * 分页查询
     *
     * @param page
     * @param gen
     * @return
     */
    IPage getResultPage(Page page, QueryWrapper<ResultDTO> gen);
 
    /**
     * 根据系统号批量修改
     *
     * @param resultList
     * @return
     */
    boolean batchUpdateResultById(List<ResultDTO> resultList);
 
    /**
     * 根据入库单库存生成对应检测结果
     *
     * @param stockList
     * @return
     */
    boolean addResultByReceiving(List<Stock> stockList);
 
    /**
     * 根据结果id显示检测项
     *
     * @param id
     * @return
     */
    List<ReportSampleItemDTO> getSampleItems(Long id);
 
    /**
     * @param page
     * @param queryDTO
     * @return
     */
    Object getResultPageTwo(Page page, ResultPageTwoQueryDTO queryDTO);
 
    Object getResultPageV2(Page page, ResultPageV2QueryDTO queryDTO);
 
    Map<String, List<List<String>>> getResultListV2(ResultPageV2QueryDTO queryDTO);
 
    /**
     * excel导出的检测结果
     *
     * @param reportSampleDTO
     * @return
     */
    Map<String, List<List<String>>> getTestReportResult(ResultPageTwoQueryDTO reportSampleDTO);
 
    /**
     * 自产稽查明细报表
     *
     * @param begin
     * @param end
     * @return
     */
    List<AuditingDetailReportDTO> getAuditingDetailReport(Timestamp begin, Timestamp end);
 
    /**
     * 自产稽查总表
     *
     * @param begin
     * @param end
     * @return
     */
    List<AuditingReportDTO> getAuditingReport(Timestamp begin, Timestamp end);
}