package com.chinaztt.mes.quality.service;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
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.ReportSampleAttachment;
|
import com.chinaztt.mes.quality.entity.ReportSampleItem;
|
import com.chinaztt.ztt.common.core.util.R;
|
import org.springframework.web.multipart.MultipartFile;
|
|
import javax.servlet.http.HttpServletResponse;
|
import java.util.List;
|
|
/**
|
* 检测汇报样品表
|
*
|
* @author cxf
|
* @date 2021-04-06 14:29:44
|
*/
|
public interface ReportSampleService extends IService<ReportSample> {
|
|
/**
|
* 新增检测汇报样品表
|
*
|
* @param reportSampleList
|
* @return
|
*/
|
boolean saveBatchList(List<ReportSample> reportSampleList);
|
|
/**
|
* 查询
|
*
|
* @param gen
|
* @return
|
*/
|
List<ReportSampleDTO> getReportSampleList(QueryWrapper<ReportSampleDTO> gen);
|
|
/**
|
* 删除
|
*
|
* @param id
|
* @return
|
*/
|
boolean deleteById(Long id);
|
|
/**
|
* 通过id查询样品检测项目
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
List<ReportSampleItemDTO> getSampleItemsById(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 通过id查询样品检测项目(含字典项)
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
List<ReportSampleItemDTO> getSampleSysItemsById(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 上传文件
|
*
|
* @param file
|
* @param sampleId
|
* @return
|
*/
|
R uploadFile(MultipartFile file, Long sampleId);
|
|
/**
|
* 通过文件名删除附件
|
*
|
* @param fileName
|
* @return
|
*/
|
R deleteFile(String fileName);
|
|
/**
|
* 通过id查询检测汇报样品附件
|
*
|
* @param id
|
* @return
|
*/
|
List<ReportSampleAttachment> getReportSampleAttachment(Long id);
|
|
/**
|
* 获取文件
|
*
|
* @param bucket
|
* @param fileName
|
* @param response
|
*/
|
void getFile(String bucket, String fileName, HttpServletResponse response);
|
|
/**
|
* 新增自检结果,自动创建汇报单/汇报零件
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
ReportSampleDTO saveSelfSampleItem(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 通过系统编号/制造订单号查询自检汇报样品表
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
ReportSampleDTO getReportSampleForSelf(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 自检完移库操作
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
ReportSampleDTO autoMoveStock(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 判定合格校验
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
R judgmentSampleCheck(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 通过id判定合格
|
*
|
* @param reportSampleDTO
|
* @return
|
*/
|
ReportSampleDTO autoJudgmentSample(ReportSampleDTO reportSampleDTO);
|
|
/**
|
* 通过id修改
|
*
|
* @param reportSample
|
* @return
|
*/
|
ReportSample updateSampleById(ReportSample reportSample);
|
|
/**
|
* 通过id修改
|
*
|
* @param reportSample
|
* @return
|
*/
|
ReportSample updateSampleByIdV2(ReportSample reportSample);
|
|
/**
|
* 判断单条检测项
|
* @param reportSampleItemDTO
|
* @return
|
*/
|
ReportSampleItemDTO autoJudgmentSampleSingle(ReportSampleItemDTO reportSampleItemDTO);
|
|
|
/**
|
* 大表数采
|
* @param id
|
* @param sn
|
* @return
|
*/
|
List<ReportSampleItemDTO> dataAcquisition(Long id,String sn);
|
|
boolean insert(ReportSample reportSample);
|
|
List<String> getTestStandardNoBySnOrPartId(String partBatchNo, Long partId, String testType);
|
}
|