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