yun-zuoyi
曾贞一 4 years ago
commit 561717b7a3

@ -1908,6 +1908,84 @@ public class WmsEnumUtil {
}
/**
* PO
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PO_QC_STATUS {
INQUALITY(10, "INQUALITY", "质检中"),
NORMAL(20, "NORMAL", "合格"),
ABNORMAL(30, "ABNORMAL", "不合格");
private int value;
private String code;
private String description;
private PO_QC_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static String codeOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].code;
}
}
return tmp;
}
public static PO_QC_STATUS codeOfs(Integer value) {
if (value == null) {
return null;
} else {
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
return values()[i];
}
}
}
return null;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -64,4 +64,8 @@ public class MesExtendObjectCfg extends BaseBean implements Serializable {
@Column(name = "FIELD_DESC")
@ApiParam("扩展字段描述")
private String fieldDesc;
@Column(name = "ORIGINAL_FIELD_CODE")
@ApiParam("原始字段代码")
private String originalFieldCode;
}

@ -192,7 +192,7 @@ public class MesProduceSnTravel extends BaseBean implements Serializable {
@Transient
@ApiParam("节拍时间")
private Integer cycleTime;
private Integer cycleTime = 0;
public double getQtyVal() {
return this.qty == null ? 0.0d : this.qty;

@ -0,0 +1,43 @@
package cn.estsh.i3plus.pojo.mes.model;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import java.util.List;
/**
* @Description:
* @Reference:
* @Author: Dominic
* @CreateDate: 2019\11\28 19:50
* @Modify:
**/
@Data
public class CosmaDefectModel {
@ApiParam("工厂代码")
private String organizeCode;
@ApiParam("产线")
private String workCenterCode;
@ApiParam("工位")
private String workCellCode;
@ApiParam("类型")
private String type;
@ApiParam("过程条码")
private String serialNumber;
@ApiParam("缺陷代码集合")
private List<String> defectCodeList;
@ApiParam("缺陷位置")
private String location;
@ApiParam("操作人")
private String userName;
@ApiParam("报废原因")
private String scrapCode;
}

@ -6,8 +6,6 @@ import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
@ -15,6 +13,8 @@ import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
@ -198,6 +198,14 @@ public class WmsASNMaster extends BaseBean {
@Transient
private List<String> orderNoList;
@Transient
@ApiParam(value = "窗口开始时间")
public String windowStartTime;
@Transient
@ApiParam(value = "窗口结束时间")
public String windowEndTime;
public WmsASNMaster() {
}

@ -8,14 +8,14 @@ import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;
@ -56,11 +56,20 @@ public class WmsQCMaster extends BaseBean {
* :1=,5=,10=,90=,91=
*/
@Column(name = "ORDER_STATUS")
@ApiParam(value = "状态", example = "1")
@ApiParam(value = "单据状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.QC_INFO_STATUS.class, refForeignKey = "value", value = "description")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "MASTER_ORDER_STATUS")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "QC_INFO_STATUS")
public Integer orderStatus;
/**
* :10=,20=,30=
*/
@Column(name = "QC_STATUS")
@ApiParam(value = "质检状态", example = "1")
@AnnoOutputColumn(refClass = WmsEnumUtil.PO_QC_STATUS.class, refForeignKey = "value", value = "description")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, dataSrc = "PO_QC_STATUS")
public Integer qcStatus;
@Column(name = "REMARK")
@ApiParam("备注")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)

@ -909,6 +909,67 @@ public class WmsStockSn extends BaseBean {
this.orderNo = orderNo;
}
public WmsStockSn(String organizeCode, Long id, String sn, String partNo, String partNameRdd, String unit, Integer snStatus,
Integer qcStatus, Double qty, String locateNo, String zoneNo, String whNo, String lotNo,
String dateCode, String leftCode, String fixLotNo, String vendorNo, String vendorNameRdd,
String qualityDate, String custNo, String custSn, String sn2d,
String packageNo, String createDatetime, String createUser, String modifyDatetime, String modifyUser,
String parentPositionNo, Date pdate, Integer printed, String refSrc, String refType,
String shippingFlag, String workCenterCode, Integer snType,
String packagePartNo, Integer useCount, Integer seqNo,
String whNameRdd, String locateNameRdd, String zoneNameRdd, String partTypeDesc,
String prodCfgTypeName, String custNameRdd, String workOrderCode, String color, String orderNo, String serialNumber) {
this.organizeCode = organizeCode;
this.id = id;
this.sn = sn;
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.unit = unit;
this.snStatus = snStatus;
this.qcStatus = qcStatus;
this.qty = qty;
this.locateNo = locateNo;
this.zoneNo = zoneNo;
this.whNo = whNo;
this.lotNo = lotNo;
this.dateCode = dateCode;
this.leftCode = leftCode;
this.fixLotNo = fixLotNo;
this.vendorNo = vendorNo;
this.vendorNameRdd = vendorNameRdd;
this.qualityDate = qualityDate;
this.custNo = custNo;
this.custSn = custSn;
this.sn2d = sn2d;
this.packageNo = packageNo;
this.createDatetime = createDatetime;
this.createUser = createUser;
this.modifyDatetime = modifyDatetime;
this.modifyUser = modifyUser;
this.parentPositionNo = parentPositionNo;
this.pdate = pdate;
this.printed = printed;
this.refSrc = refSrc;
this.refType = refType;
this.shippingFlag = shippingFlag;
this.workCenterCode = workCenterCode;
this.snType = snType;
this.packagePartNo = packagePartNo;
this.useCount = useCount;
this.seqNo = seqNo;
this.whNameRdd = whNameRdd;
this.locateNameRdd = locateNameRdd;
this.zoneNameRdd = zoneNameRdd;
this.partTypeDesc = partTypeDesc;
this.prodCfgTypeName = prodCfgTypeName;
this.custNameRdd = custNameRdd;
this.workOrderCode = workOrderCode;
this.color = color;
this.orderNo = orderNo;
this.serialNumber = serialNumber;
}
public WmsStockSn(String packageNo, Double qty, String qualityDate, String lotNo, String dateCode, String leftCode, String fixLotNo) {
this.packageNo = packageNo;
this.qty = qty;

Loading…
Cancel
Save