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);
|
}
|