修改天津工单拉动逻辑

yun-zuoyi
rock.yu 5 years ago
parent d1c0a6ce8d
commit 77d8aa4bdd

@ -7321,6 +7321,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) @JsonFormat(shape = JsonFormat.Shape.OBJECT)

@ -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