yun-zuoyi
joke.wang 5 years ago
parent 25382f0265
commit e5cd6692d4

@ -6691,4 +6691,62 @@ public class MesEnumUtil {
return tmp;
}
}
/**
* QAD
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum QAD_DATA_OBJECT {
BOM("soapenv#Envelope#SyncBOM", "getBomList", "MesBom","BOM"),
CUSTOMER_PART("soapenv#Envelope#SyncCustomerItem","getCustomerPartList", "MesCustomerPart","客户物料号"),
CUSTOMER("soapenv#Envelope#SyncCustomer","getCustomerList", "MesCustomer","客户信息"),
PART("soapenv#Envelope#SyncItem","getPartList", "MesPart","物料信息");
private String code;
private String method;
private String objectCode;
private String description;
QAD_DATA_OBJECT(String code, String method, String objectCode, String description) {
this.code = code;
this.method = method;
this.objectCode = objectCode;
this.description = description;
}
public String getCode() {
return code;
}
public String getMethod() {
return method;
}
public String getObjectCode() {
return objectCode;
}
public String getDescription() {
return description;
}
public static String codeOfDescription(String code) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code)) {
tmp = values()[i].description;
}
}
return tmp;
}
public static QAD_DATA_OBJECT getByCode(String code) {
for (QAD_DATA_OBJECT qadDataObject : values()) {
if (qadDataObject.getCode().equals(code)) {
return qadDataObject;
}
}
return null;
}
}
}

@ -81,6 +81,10 @@ public class MesBom extends BaseBean implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private String effEndTime;
@Column(name = "BOM_CODE")
@ApiParam("BOM代码")
private String bomCode;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;
}

Loading…
Cancel
Save