李林
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
93
94
95
96
97
98
99
100
101
102
103
104
105
package com.chinaztt.mes.quality.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinaztt.mes.quality.dto.ReportSampleDTO;
import com.chinaztt.mes.quality.dto.ReportSampleItemDTO;
import com.chinaztt.mes.quality.entity.ReportSample;
import com.chinaztt.mes.quality.entity.ReportSampleItem;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Set;
 
/**
 * 检测汇报项目表
 *
 * @author cxf
 * @date 2021-04-06 14:29:45
 */
@Mapper
public interface ReportSampleItemMapper extends BaseMapper<ReportSampleItem> {
 
    /**
     * 通过id查询样品检测项目
     *
     * @param reportSampleDTO
     * @return
     */
    List<ReportSampleItemDTO> getSampleItemsById(@Param("reportSample") ReportSampleDTO reportSampleDTO);
 
    /**
     * 通过id查询样品检测项目(含字典项)
     *
     * @param reportSampleDTO
     * @return
     */
    List<ReportSampleItemDTO> getSampleSysItemsById(@Param("reportSample") ReportSampleDTO reportSampleDTO);
 
 
    /**
     * 通过id查询样品检测项目(含字典项)
     *
     * @param reportSampleId
     * @param keyList
     * @return
     */
    List<ReportSampleItemDTO> getSampleSysItemsBySortAndId(@Param("reportSampleId") Long reportSampleId,@Param("keyList") List<Long> keyList);
 
 
    /**
     * 通过idList查询样品检测项目
     *
     * @param idList
     * @return
     */
    List<ReportSampleItemDTO> getSampleItemsByList(@Param("idList") List<Long> idList);
 
    /**
     * 增加检测项目
     *
     * @param reportSample
     * @return
     */
    int insertSampleItemsById(@Param("reportSample") ReportSample reportSample);
 
    /**
     * 增加制造订单的检测项目
     *
     * @param reportSample
     * @return
     */
    int insertMoSampleItemsById(@Param("reportSample") ReportSample reportSample);
 
    /**
     * 通过制造订单检测标准id查询检测汇报项目表
     *
     * @param id
     * @return
     */
    List<ReportSampleItemDTO> getByMoTestStandardId(Long id);
 
    /**
     * 根据检测汇报样品id删除检测汇报样品检测项
     * @param sampleId
     */
    void deleteReportSampleTestItemsBySampleId(@Param("sampleId") Long sampleId);
 
    /**
     * 根据检测项系统编号找到对应产出投入系统编号
     * @param systemNo
     * @return
     */
    List<String> getInputSystemNoByOutReportSampleSystemNo(@Param("systemNos") List<String> systemNos);
 
    /**
     * 根据继承项id和系统编号找到对应的检测项结果
     * @param technologyDocumentStandardParamIdList
     * @param systemNoList
     * @return
     */
    List<ReportSampleItem> getParentItemList(@Param("paramIdList") List<Long> technologyDocumentStandardParamIdList,
                                             @Param("systemNoList") Set<String> systemNoList);
 
    void copyReportSampleItem(@Param("copyId") Long copyId, @Param("reportSampleId") Long reportSampleId);
}