SpcResultViolationDetailDto.java
package com.mycim.valueobject.edcspc.dto;
import com.mycim.framework.utils.lang.collections.CollectionUtils;
import java.io.Serializable;
import java.util.List;
/**
* @author Luopeng.Wang
* @version 6.0.0
* @date 2019/11/18
**/
public class SpcResultViolationDetailDto implements Serializable {
private String chId;
private String ckcId;
private String sampleId;
private String parameterName;
private String parameterUnit;
private List<String> exKeys;
private List<String> daKeys;
private List<String> violateId;
private List<String> violatedNames;
private List<SpcResultCorrectiveActionDto> correctiveActionList;
public String getChId() {
return chId;
}
public void setChId(String chId) {
this.chId = chId;
}
public String getCkcId() {
return ckcId;
}
public void setCkcId(String ckcId) {
this.ckcId = ckcId;
}
public String getSampleId() {
return sampleId;
}
public void setSampleId(String sampleId) {
this.sampleId = sampleId;
}
public String getParameterName() {
return parameterName;
}
public void setParameterName(String parameterName) {
this.parameterName = parameterName;
}
public String getParameterUnit() {
return parameterUnit;
}
public void setParameterUnit(String parameterUnit) {
this.parameterUnit = parameterUnit;
}
public List<String> getExKeys() {
return exKeys;
}
public void setExKeys(List<String> exKeys) {
this.exKeys = exKeys;
}
public List<String> getDaKeys() {
return daKeys;
}
public void setDaKeys(List<String> daKeys) {
this.daKeys = daKeys;
}
public List<String> getViolateId() {
return violateId;
}
public void setViolateId(List<String> violateId) {
this.violateId = violateId;
}
public List<String> getViolatedNames() {
return violatedNames;
}
public void setViolatedNames(List<String> violatedNames) {
this.violatedNames = violatedNames;
}
public List<SpcResultCorrectiveActionDto> getCorrectiveActionList() {
return correctiveActionList;
}
public void setCorrectiveActionList(List<SpcResultCorrectiveActionDto> correctiveActionList) {
this.correctiveActionList = correctiveActionList;
}
public String getLotId() {
String lotId = "";
if (CollectionUtils.isNotEmpty(exKeys) && exKeys.size() == 20) {
//lotId 固定在第二个
lotId = exKeys.get(1);
}
return lotId;
}
public String getEquipmentId() {
String equipmentId = "";
if (CollectionUtils.isNotEmpty(exKeys) && exKeys.size() == 20) {
//EquipmentId 固定在第十六个
equipmentId = exKeys.get(15);
}
return equipmentId;
}
public String getSubEquipmentId() {
String subEquipmentId = "";
if (CollectionUtils.isNotEmpty(exKeys) && exKeys.size() == 20) {
//SubEquipmentId 固定在第十七个
subEquipmentId = exKeys.get(16);
//SubEquipmentId若为'.'或者'-'将值置为空
if (subEquipmentId.equals(SpcGatewayDataDto.POINT_CHAR) ||
subEquipmentId.equals(SpcGatewayDataDto.EMPTY_CHAR)) {
return null;
}
}
return subEquipmentId;
}
public String getLotIdList() {
String lotIdList = "";
if (CollectionUtils.isNotEmpty(daKeys) && daKeys.size() == 20) {
// 固定在DK第十三个
lotIdList = daKeys.get(12);
//SubEquipmentId若为'.'或者'-'将值置为空
if (lotIdList.equals(SpcGatewayDataDto.POINT_CHAR) || lotIdList.equals(SpcGatewayDataDto.EMPTY_CHAR)) {
return null;
}
}
return lotIdList;
}
}