yun-zuoyi
Aisiyu 5 years ago
commit a2a4a85312

@ -7323,6 +7323,80 @@ public class WmsEnumUtil {
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum INTERFACE_DATA_VERIFY_STATUS {
INITIAL(10, "INITIAL", "初始化"),
COMPLETED(30, "COMPLETED", "校验完成"),
ERROR(40, "ERROR", "校验出错");
private int value;
private String code;
private String description;
INTERFACE_DATA_VERIFY_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 valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String desc) {
return descOf(desc);
}
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 INTERFACE_DATA_VERIFY_STATUS codeOf(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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -491,7 +491,7 @@ public class WmsDocMovementDetails extends BaseBean {
}
public WmsDocMovementDetails(String createDatetime, String srcZoneNo, String srcLocateNo, String destLocateNo, String createUser, Integer itemStatus, String orderNo, String planTime, Long itemCount) {
public WmsDocMovementDetails(String createDatetime, String srcZoneNo, String srcLocateNo, String destLocateNo, String createUser, Integer itemStatus, String orderNo, String planDate, String planTime, Long itemCount) {
this.createDatetime = createDatetime;
this.srcZoneNo = srcZoneNo;
this.srcLocateNo = srcLocateNo;
@ -499,6 +499,7 @@ public class WmsDocMovementDetails extends BaseBean {
this.createUser = createUser;
this.itemStatus = itemStatus;
this.orderNo = orderNo;
this.planDate = planDate;
this.planTime = planTime;
this.itemCount = itemCount;
}

@ -1,6 +1,10 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
@ -85,6 +89,38 @@ public class WmsQCDetails extends BaseBean {
public transient Integer lockVersion;
@Transient
@ApiParam(value = "单据状态")
public Integer orderStatus;
@Transient
@ApiParam(value = "供应商编号")
public String vendorNo;
@Transient
@ApiParam(value = "供应商名称")
public String vendorDesc;
public WmsQCDetails() {
}
public WmsQCDetails(String partNo, String partNameRdd, String item,
Double qty, String unit, String orderNo,
Integer itemStatus, String remark, Double factQty,
Double passQty, Double rejectQty,
Integer orderStatus, String vendorNo,String vendorDesc) {
this.partNo = partNo;
this.partNameRdd = partNameRdd;
this.item = item;
this.qty = qty;
this.unit = unit;
this.orderNo = orderNo;
this.itemStatus = itemStatus;
this.remark = remark;
this.factQty = factQty;
this.passQty = passQty;
this.rejectQty = rejectQty;
this.orderStatus = orderStatus;
this.vendorNo = vendorNo;
this.vendorDesc = vendorDesc;
}
}

@ -103,8 +103,8 @@ public class WmsQCMaster extends BaseBean {
@ApiParam(value = "供应商全称")
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.OBJ,
dataSrc = "cn.estsh.i3plus.pojo.wms.bean.BasVendor",
searchColumnName = "vendorNo,VendorDesc", listColumnName = "vendorNo,VendorDesc", explicitColumnName = "vendorNo")
private String VendorDesc;
searchColumnName = "vendorNo,vendorDesc", listColumnName = "vendorNo,vendorDesc", explicitColumnName = "vendorNo")
private String vendorDesc;
@Column(name = "IS_TASK")
@ApiParam(value = "是否生产任务", example = "1")
@ -146,10 +146,10 @@ public class WmsQCMaster extends BaseBean {
this.partNo = partNo;
}
public WmsQCMaster(String orderNo, String vendorNo, String VendorDesc, String refType, String refSrc, String partNo, String partNameRdd, String createDatetime) {
public WmsQCMaster(String orderNo, String vendorNo, String vendorDesc, String refType, String refSrc, String partNo, String partNameRdd, String createDatetime) {
this.orderNo = orderNo;
this.vendorNo = vendorNo;
this.VendorDesc = VendorDesc;
this.vendorDesc = vendorDesc;
this.refType = refType;
this.refSrc = refSrc;
this.partNo = partNo;
@ -157,11 +157,11 @@ public class WmsQCMaster extends BaseBean {
this.createDatetime = createDatetime;
}
public WmsQCMaster(String orderNo, Double qty, String vendorNo, String VendorDesc, String refType, String refSrc, String partNo, String partNameRdd, String createDatetime) {
public WmsQCMaster(String orderNo, Double qty, String vendorNo, String vendorDesc, String refType, String refSrc, String partNo, String partNameRdd, String createDatetime) {
this.orderNo = orderNo;
this.qty = qty;
this.vendorNo = vendorNo;
this.VendorDesc = VendorDesc;
this.vendorDesc = vendorDesc;
this.refType = refType;
this.refSrc = refSrc;
this.partNo = partNo;

@ -0,0 +1,69 @@
package cn.estsh.i3plus.pojo.wms.dbinterface;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
/**
* WMS - SAP
*
* @author Rock.Yu
* @since 2019-06-09 20:08
*/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_INTERFACE_DATA_RECORD")
@Api("接口数据收发记录")
public class WmsInterfaceDataRecord extends BaseBean {
private static final long serialVersionUID = 4139055040492108499L;
@ApiParam("来源表名")
@Column(name = "SRC_TABLE_NAME", length = 50)
public String srcTableName;
@ApiParam("目标实体对象的名字,多个字段用半角逗号分隔")
@Column(name = "DEST_BEAN_NAME", length = 500)
public String destBeanName;
@ApiParam("软适配编号")
@Column(name = "SOFT_ADAPATOR_CODE")
public String softAdaptorCode;
@ApiParam("接口名称")
@Column(name = "INTERFACE_NAME")
public String interfaceName;
@ApiParam("报文唯一编号")
@Column(name = "SID")
public Long sid;
@ApiParam("MOVE_TO_ERP表的ID")
@Column(name = "MOVE_TO_ERP_ID")
public Long moveToErpID;
@ApiParam("报文校验状态")
@Column(name = "VERIFY_STATUS")
@ColumnDefault("10")
@AnnoOutputColumn(refClass = WmsEnumUtil.INTERFACE_DATA_VERIFY_STATUS.class, refForeignKey = "value", value = "description", required = false)
public int verifyStatus;
@ApiParam("备注信息")
@Column(name = "REMARK")
public String remark;
}
Loading…
Cancel
Save