Jenkins自动合并

yun-zuoyi
jenkins 5 years ago
commit 015d284239

@ -3023,6 +3023,8 @@ public class WmsEnumUtil {
}
}
/**
*
*/
@ -4566,4 +4568,39 @@ public class WmsEnumUtil {
}
}
/**
*
* 2
*/
public enum IS_VALUABLE {
TRUE(1, "贵重物料"), FALSE(2, "非贵重物料");
private int value;
private String description;
IS_VALUABLE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -9,6 +9,7 @@ import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import java.math.BigDecimal;
/**
* @Description:
@ -154,6 +155,14 @@ public class MesProduceSn extends BaseBean {
@ApiParam("条码类型名称")
private String snTypeName;
public MesProduceSn() {
}
public MesProduceSn(String partNo, Integer qcStatus, Double qty) {
this.partNo = partNo;
this.qcStatus = qcStatus;
this.qty = qty;
}
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;

@ -170,6 +170,11 @@ public class WmsPart extends BaseBean {
@ApiParam(value = "待质检比例", example = "1")
private Double proportion;
@Column(name = "IS_VALUABLE", columnDefinition = "int default 2")
@ApiParam(value = "贵重物料")
@AnnoOutputColumn(refClass = WmsEnumUtil.IS_VALUABLE.class, refForeignKey = "value", value = "description")
private Integer isValuable;
@Transient
@ApiParam("总数量")
private Double qty;

Loading…
Cancel
Save