edi
parent
20cefbfec6
commit
cf1edee02e
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/7/30 9:30 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_EDI_INITIAL_DATA")
|
||||
@Api("EDI_初始数据表")
|
||||
public class IfEdiInitialData extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -523843818485699827L;
|
||||
|
||||
@Column(name = "PROGRAM_DATA")
|
||||
@ApiParam("EDI抓取程序代码")
|
||||
private String programData;
|
||||
|
||||
@Column(name = "CONTENT")
|
||||
@ApiParam("数据")
|
||||
private String content;
|
||||
|
||||
@Column(name = "FILE_NAME")
|
||||
@ApiParam("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@Column(name = "FILE_URL")
|
||||
@ApiParam("文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 15:23
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
public class EdiFileModel implements Serializable {
|
||||
private static final long serialVersionUID = 7085611430865514271L;
|
||||
|
||||
private String content;
|
||||
|
||||
private String fileName;
|
||||
|
||||
private String fileUrl;
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 14:51
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
public class EdiRequestModel implements Serializable {
|
||||
private static final long serialVersionUID = 7203497485903427292L;
|
||||
|
||||
private String organizeCode;
|
||||
|
||||
private String sourcePath;
|
||||
|
||||
private List<EdiFileModel> files;
|
||||
|
||||
private Integer ediType;
|
||||
|
||||
private String host;
|
||||
|
||||
private String config;
|
||||
|
||||
private String programCode;
|
||||
|
||||
private Integer syncStatus = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlan;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlanBom;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesQueueJitPlanDetail;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 17:17
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class QueueJitPlanModel {
|
||||
|
||||
private MesQueueJitPlan jitPlan;
|
||||
|
||||
private List<MesQueueJitPlanDetail> jitPlanDetails;
|
||||
|
||||
private List<MesQueueJitPlanBom> jitPlanBoms;
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:36
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("coderule")
|
||||
public class CodeRule implements Serializable {
|
||||
private static final long serialVersionUID = 6090471998165282835L;
|
||||
|
||||
@XStreamAlias("code")
|
||||
private String code;
|
||||
|
||||
@XStreamAlias("type")
|
||||
private String type;
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:32
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("document")
|
||||
public class Document implements Serializable {
|
||||
private static final long serialVersionUID = 2814403876905527454L;
|
||||
|
||||
@XStreamAlias("head")
|
||||
private Head head;
|
||||
|
||||
@XStreamAlias("message")
|
||||
private Message message;
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:32
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("head")
|
||||
public class Head implements Serializable {
|
||||
private static final long serialVersionUID = 7799977037966652535L;
|
||||
|
||||
@XStreamAlias("customerno")
|
||||
private String customerno;
|
||||
|
||||
@XStreamAlias("customername")
|
||||
private String customername;
|
||||
|
||||
@XStreamAlias("plantcode")
|
||||
private String plantcode;
|
||||
|
||||
@XStreamAlias("plantname")
|
||||
private String plantname;
|
||||
|
||||
@XStreamAlias("suppliernumber")
|
||||
private String suppliernumber;
|
||||
|
||||
@XStreamAlias("suppliername")
|
||||
private String suppliername;
|
||||
|
||||
@XStreamAlias("status")
|
||||
private String status;
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:33
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("message")
|
||||
public class Message implements Serializable {
|
||||
private static final long serialVersionUID = 8628748312808962449L;
|
||||
|
||||
@XStreamImplicit
|
||||
List<Pn> pns;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:36
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("optioncode")
|
||||
public class OptionCode implements Serializable {
|
||||
private static final long serialVersionUID = -4790746701135990728L;
|
||||
|
||||
@XStreamAlias("coderule")
|
||||
private List<CodeRule> codeRules;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:35
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("part")
|
||||
public class Part implements Serializable {
|
||||
private static final long serialVersionUID = -8947770816754458901L;
|
||||
|
||||
@XStreamAlias("item")
|
||||
private String item;
|
||||
|
||||
@XStreamAlias("dock")
|
||||
private String dock;
|
||||
|
||||
@XStreamAlias("qty")
|
||||
private String qty;
|
||||
|
||||
@ApiParam("是否是baseModule")
|
||||
private boolean isBaseModule;
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:35
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("parts")
|
||||
public class Parts implements Serializable {
|
||||
private static final long serialVersionUID = -7294906162624860932L;
|
||||
|
||||
@XStreamAlias("parts")
|
||||
private List<Part> parts;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model.mgnbj;
|
||||
|
||||
import com.thoughtworks.xstream.annotations.XStreamAlias;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/6/23 12:33
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@XStreamAlias("PN")
|
||||
public class Pn implements Serializable {
|
||||
private static final long serialVersionUID = 194164925380216505L;
|
||||
|
||||
@XStreamAlias("vin")
|
||||
private String vin;
|
||||
|
||||
@XStreamAlias("seqno")
|
||||
private String seqno;
|
||||
|
||||
@XStreamAlias("date")
|
||||
private String date;
|
||||
|
||||
@XStreamAlias("vehicleCode")
|
||||
private String vehicleCode;
|
||||
|
||||
@XStreamAlias("version")
|
||||
private String version;
|
||||
|
||||
@XStreamAlias("parts")
|
||||
private List<Part> parts;
|
||||
|
||||
@XStreamAlias("optioncode")
|
||||
private List<CodeRule> codeRules;
|
||||
|
||||
@ApiParam("新vin号")
|
||||
private String newVin;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.IfEdiInitialData;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : wynne.lu
|
||||
* @CreateDate : 2019-07-30
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface IfEdiInitialDataRepository extends BaseRepository<IfEdiInitialData, Long> {
|
||||
}
|
Loading…
Reference in New Issue