package com.ruoyi.inspect.dto;
|
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.util.LinkedHashSet;
|
import java.util.List;
|
import java.util.TreeMap;
|
|
/**
|
* @Author zhuo
|
* @Date 2024/11/30
|
*/
|
@Data
|
public class SampleProductExportDto {
|
|
@Schema(description = "样品id")
|
private Integer id;
|
|
@Schema(description = "产品id")
|
private Integer insProductId;
|
|
@Schema(description = "样品编号")
|
private String sampleCode;
|
|
@Schema(description = "样品名称")
|
private String sample;
|
|
@Schema(description = "检验项分类")
|
private String inspectionItemClass;
|
private String inspectionItemClassEN;
|
|
@Schema(description = "检验项")
|
private String inspectionItem;
|
private String inspectionItemEn;
|
|
@Schema(description = "检验子项")
|
private String inspectionItemSubclass;
|
private String inspectionItemSubclassEn;
|
|
@Schema(description = "单位")
|
private String unit;
|
|
@Schema(description = "样品型号")
|
private String model;
|
|
@Schema(description = "样品状态")
|
private Integer insState;
|
|
@Schema(description = "实验室")
|
private String sonLaboratory;
|
|
@Schema(description = "检验项类型")
|
private String inspectionItemType;
|
|
@Schema(description = "检验值类型")
|
private String inspectionValueType;
|
|
@Schema(description = "要求值")
|
private String ask;
|
|
@Schema(description = "试验要求")
|
private String tell;
|
|
@Schema(description = "检验结果")
|
private String lastValue;
|
|
@Schema(description = "结果判定")
|
private Integer insResult;
|
|
@Schema(description = "检验人")
|
private String checkName;
|
|
@Schema(description = "检验日期")
|
private String checkTime;
|
|
@Schema(description = "序号")
|
private String index;
|
|
@Schema(description = "名称")
|
private String inspectionName;
|
|
//条件
|
private String radius;
|
|
// 检验结果列表
|
private List<String> lastValueList;
|
|
// 检验结果列表
|
private List<Integer> insResultList;
|
|
//最终结果
|
private String finalResult;
|
|
//原材料id
|
private Integer ifsInventoryId;
|
|
//检验单类型
|
private String orderType;
|
|
//检验单类型
|
private Integer quantity;
|
|
//检验单类型
|
private Integer sort;
|
|
//电缆标识
|
private String cableTag;
|
|
// 唯一结果值
|
private LinkedHashSet<String> tellSet;
|
|
// 电缆标识内容集合
|
private TreeMap<String, String> cableTagValueMap;
|
|
// 电缆标识结果集合
|
private TreeMap<String, Integer> cableTagResultMap;
|
|
// 检验项和条件合并关联
|
public String getInspectionItemRadius() {
|
if (StringUtils.isBlank(radius)) {
|
return inspectionItem;
|
}
|
return inspectionItem + radius;
|
}
|
|
}
|