Merge remote-tracking branch 'origin/dev' into dev
commit
7348d78238
@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<artifactId>i3plus-pojo</artifactId>
|
||||
<groupId>i3plus.pojo</groupId>
|
||||
<version>1.0-DEV-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>i3plus-pojo-mes-pcn</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>i3plus.pojo</groupId>
|
||||
<artifactId>i3plus-pojo-base</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<properties>
|
||||
<profileActive>DEV</profileActive>
|
||||
</properties>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>test</id>
|
||||
<properties>
|
||||
<profileActive>TEST</profileActive>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>docker</id>
|
||||
<properties>
|
||||
<profileActive>DOCKER</profileActive>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<properties>
|
||||
<profileActive>PROD</profileActive>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
<build>
|
||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||
</build>
|
||||
|
||||
</project>
|
@ -0,0 +1,105 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\14 19:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_DISMENTLE_RECORD")
|
||||
@Api("物料拆解表")
|
||||
public class IfDismantleRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6010207359066736962L;
|
||||
@Column(name = "DISMANTLE_ID")
|
||||
@ApiParam("拆解编号")
|
||||
private String dismantleId;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PARENT_PART_NO")
|
||||
@ApiParam("产品物料编码")
|
||||
private String parentPartNo;
|
||||
|
||||
@Column(name = "PARENT_PART_NAME")
|
||||
@ApiParam("产品物料名称")
|
||||
private String parentPartName;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("产品条码")
|
||||
private String sn;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("产品数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "DISMANTLE_QTY")
|
||||
@ApiParam("拆解数")
|
||||
private BigDecimal dismantleQty;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子物料编码")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("子物料名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "OK_QTY")
|
||||
@ApiParam("合格数")
|
||||
private BigDecimal okQty;
|
||||
|
||||
@Column(name = "MISS_QTY")
|
||||
@ApiParam("缺失数")
|
||||
private BigDecimal missQty;
|
||||
|
||||
@Column(name = "SCRAP_QTY")
|
||||
@ApiParam("报废数")
|
||||
private BigDecimal scrapQty;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_MESSAGE")
|
||||
@ApiParam("异常消息")
|
||||
private String errorMessage;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
}
|
@ -0,0 +1,100 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\15 10:01
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_PACKAGE_DETAIL")
|
||||
@Api("包装明细表")
|
||||
public class IfPackageDetail extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1873101288426218272L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PACKAGE_NO")
|
||||
@ApiParam("包装条码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("包装批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "PACKAGE_NO2")
|
||||
@ApiParam("包装编号2")
|
||||
private String packageNo2;
|
||||
|
||||
@Column(name = "PACKAGE_NO3")
|
||||
@ApiParam("包装编号3")
|
||||
private String packageNo3;
|
||||
|
||||
@Column(name = "PACKAGE_NO4")
|
||||
@ApiParam("包装编号4")
|
||||
private String packageNo4;
|
||||
|
||||
@Column(name = "ACTION_USER")
|
||||
@ApiParam("操作人")
|
||||
private String actionUser;
|
||||
|
||||
@Column(name = "ACTION_DATE_TIME")
|
||||
@ApiParam("操作时间")
|
||||
private String actionDateTime;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_MESSAGE")
|
||||
@ApiParam("异常消息")
|
||||
private String errorMessage;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
|
||||
@Column(name = "CT_NO")
|
||||
@ApiParam("容器编号")
|
||||
private String ctNo;
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\15 10:12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "IF_PRODUCT_OFF_LINE")
|
||||
@Api("生产报工表")
|
||||
public class IfProductOffLine extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 200629529131241418L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "PACKAGE_NO")
|
||||
@ApiParam("包装条码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "UNIT")
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("生产批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "FIX_LOT_NO")
|
||||
@ApiParam("特殊批次")
|
||||
private String fixLotNo;
|
||||
|
||||
@Column(name = "ACTION_USER")
|
||||
@ApiParam("操作人")
|
||||
private String actionUser;
|
||||
|
||||
@Column(name = "ACTION_DATE_TIME")
|
||||
@ApiParam("操作时间")
|
||||
private String actionDateTime;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_MESSAGE")
|
||||
@ApiParam("异常消息")
|
||||
private String errorMessage;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ACTION")
|
||||
@Api("mes系统业务动作")
|
||||
public class MesAction extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -6451213228967727835L;
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "ACTION_NAME")
|
||||
@ApiParam("动作名称")
|
||||
private String actionName;
|
||||
|
||||
@Column(name = "ACTION_TYPE")
|
||||
@ApiParam("动作类型")
|
||||
private Integer actionType;
|
||||
|
||||
public int getActionTypeVal() {
|
||||
return this.actionType == null ? 0 : this.actionType;
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\13 11:47
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ACTION_IF")
|
||||
@Api("动作接口配置")
|
||||
public class MesActionIf extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5058215339453766620L;
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "IF_CODE")
|
||||
@ApiParam("接口代码")
|
||||
private String ifCode;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作方法
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ACTION_METHOD")
|
||||
@Api("系统业务动作方法")
|
||||
public class MesActionMethod extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 6249418690993577108L;
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "METHOD_CODE")
|
||||
@ApiParam("方法代码")
|
||||
private String methodCode;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("序号")
|
||||
private Integer seq;
|
||||
|
||||
public int getSeqVal() {
|
||||
return this.seq == null ? 0 : this.seq;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :生产区域
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_AREA")
|
||||
@Api("生产区域")
|
||||
public class MesArea extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1047604067591557689L;
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name = "AREA_NAME")
|
||||
@ApiParam("区域名称")
|
||||
private String areaName;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "子集列表")
|
||||
private List<MesWorkCenter> childTreeList;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "名称")
|
||||
private String name;
|
||||
|
||||
// 默认值 -1
|
||||
@Transient
|
||||
@ApiParam(value = "父节点", access = "父节点", example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long parentId;
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :BOM清单
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_BOM")
|
||||
@Api("BOM清单")
|
||||
public class MesBom extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -1772273641263268564L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("父零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("父零件名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "UNIT")
|
||||
@ApiParam(value = "单位")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "数量", example = "0")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子零件")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("子零件名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "ITEM_UNIT")
|
||||
@ApiParam(value = "子零件单位")
|
||||
private String itemUnit;
|
||||
|
||||
@Column(name = "ITEM_QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "子零件数量", example = "0")
|
||||
private Double itemQty;
|
||||
|
||||
@Column(name = "BOM_VERSION")
|
||||
@ApiParam(value = "BOM版本")
|
||||
private String bomVersion;
|
||||
|
||||
@Column(name = "EFF_START_TIME")
|
||||
@ApiParam(value = "生效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private String effStartTime;
|
||||
|
||||
@Column(name = "EFF_END_TIME")
|
||||
@ApiParam(value = "失效时间")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private String effEndTime;
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public double getitemQtyVal() {
|
||||
return this.itemQty == null ? 0.0d : this.itemQty;
|
||||
}
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/3/16 0016 - 15:09
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CACHA_QUEUE")
|
||||
@Api("MES缓存队列")
|
||||
public class MesCachaQueue extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8272649623030195332L;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "CACHA_TYPE")
|
||||
@ApiParam("缓存类型")
|
||||
private String cachaType;
|
||||
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Version;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :工位投料信息
|
||||
* @Reference :
|
||||
* @Author : Wynne.Lu
|
||||
* @CreateDate : 2019-09-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CELL_FEED")
|
||||
@Api("工位投料信息")
|
||||
public class MesCellFeed extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 2412657464618960515L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "RAW_TYPE")
|
||||
@ApiParam("原料类型")
|
||||
private String rawType;
|
||||
|
||||
@Column(name = "RAW_SN")
|
||||
@ApiParam("原材料条码")
|
||||
private String rawSn;
|
||||
|
||||
@Column(name = "RAW_QTY")
|
||||
@ApiParam("特殊批次")
|
||||
private Double rawQty;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("关联批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
// @Version
|
||||
// @Column(name = "LOCK_VERSION")
|
||||
// @ApiParam(value = "乐观锁", example = "1")
|
||||
// public Integer lockVersion;
|
||||
|
||||
public double getRawQtyVal() {
|
||||
return this.rawQty == null ? 0l : this.rawQty;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,74 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :工位投料履历信息
|
||||
* @Reference :
|
||||
* @Author : siliter.yuan
|
||||
* @CreateDate : 2020-06-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CELL_FEED_RECORD")
|
||||
@Api("工位投料履历信息")
|
||||
public class MesCellFeedRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1947971379489107783L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "RAW_TYPE")
|
||||
@ApiParam("原料类型")
|
||||
private String rawType;
|
||||
|
||||
@Column(name = "RAW_SN")
|
||||
@ApiParam("原材料条码")
|
||||
private String rawSn;
|
||||
|
||||
@Column(name = "RAW_QTY")
|
||||
@ApiParam("原材料数量")
|
||||
private Double rawQty;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("关联批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
|
||||
public double getRawQtyVal() {
|
||||
return this.rawQty == null ? 0l : this.rawQty;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :配置表
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-06-04
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CONFIG")
|
||||
@Api("mes配置表")
|
||||
public class MesConfig extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -5759669472714287000L;
|
||||
@Column(name = "CFG_CODE")
|
||||
@ApiParam("配置代码")
|
||||
private String cfgCode;
|
||||
|
||||
@Column(name = "CFG_NAME")
|
||||
@ApiParam("配置名称")
|
||||
private String cfgName;
|
||||
|
||||
@Column(name = "CFG_TYPE")
|
||||
@ApiParam("配置类型")
|
||||
private String cfgType;
|
||||
|
||||
@Column(name = "CFG_KEY")
|
||||
@ApiParam("配置key")
|
||||
private String cfgKey;
|
||||
|
||||
@Column(name = "CFG_VALUE")
|
||||
@ApiParam("配置value")
|
||||
private String cfgValue;
|
||||
|
||||
@Column(name = "CFG_VAULE_DESC")
|
||||
@ApiParam("配置value描述")
|
||||
private String cfgValueDesc;
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CUST_PROD_LINE")
|
||||
@Api("客户产线代码")
|
||||
public class MesCustProdLine extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 3049432665592161513L;
|
||||
@Column(name = "CUST_PROD_LINE_CODE")
|
||||
@ApiParam("客户产线代码")
|
||||
private String custProdLineCode;
|
||||
|
||||
@Column(name = "CUST_PROD_LINE_NAME")
|
||||
@ApiParam("客户产线名称")
|
||||
private String custProdLineName;
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes客户表
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-04-22
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CUSTOMER")
|
||||
@Api("客户信息")
|
||||
public class MesCustomer extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 167635887082538926L;
|
||||
@Column(name = "CUSTOMER_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String customerCode;
|
||||
|
||||
@Column(name = "CUSTOMER_NAME")
|
||||
@ApiParam("客户名称")
|
||||
private String customerName;
|
||||
|
||||
@Column(name = "BRIEF_TEXT")
|
||||
@ApiParam("客户简称")
|
||||
private String briefText;
|
||||
|
||||
@Column(name = "ADDRESS")
|
||||
@ApiParam("客户地址")
|
||||
private String address;
|
||||
|
||||
@Column(name = "CONTACT")
|
||||
@ApiParam("客户联系人")
|
||||
private String contact;
|
||||
|
||||
@Column(name = "TELEPHONE")
|
||||
@ApiParam("客户电话")
|
||||
private String telephone;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes客户表
|
||||
* @Reference :
|
||||
* @Author : yiming.gu
|
||||
* @CreateDate : 2019-05-20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_CUSTOMER_PART")
|
||||
@Api("客户零件关系")
|
||||
public class MesCustomerPart extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -4731252848471949263L;
|
||||
@Column(name = "CUSTOMER_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String customerCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CUSTOMER_PART_NO")
|
||||
@ApiParam("客户零件号")
|
||||
private String customerPartNo;
|
||||
|
||||
@Column(name = "CUSTOMER_PART_NAME")
|
||||
@ApiParam("客户零件描述")
|
||||
private String customerPartName;
|
||||
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/9/24 7:12 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DATA_OBJECT")
|
||||
@Api("数据对象")
|
||||
public class MesDataObject extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -1419262751765770535L;
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OBJECT_NAME")
|
||||
@ApiParam("对象名称")
|
||||
private String objectName;
|
||||
|
||||
@Column(name = "DS_CODE")
|
||||
@ApiParam("数据源代码")
|
||||
private String dsCode;
|
||||
|
||||
@Column(name = "OPERATE_TYPE")
|
||||
@ApiParam("操作类型")
|
||||
private Integer operateType;
|
||||
|
||||
@Column(name = "FIELD_PK")
|
||||
@ApiParam("主键")
|
||||
private String fieldPk;
|
||||
|
||||
@Column(name = "READ_FLAG_VALUE")
|
||||
@ApiParam("读取标志值")
|
||||
private String readFlagValue;
|
||||
|
||||
@Column(name = "FEED_FIELD")
|
||||
@ApiParam("反馈字段")
|
||||
private String feedField;
|
||||
|
||||
@Column(name = "FEED_VALUE")
|
||||
@ApiParam("反馈值")
|
||||
private String feedValue;
|
||||
|
||||
@Column(name = "SELF_ADDITION")
|
||||
@ApiParam("自增列")
|
||||
private String selfAddition;
|
||||
|
||||
@Column(name = "SELF_ADDITION_VALUE")
|
||||
@ApiParam("自增列值")
|
||||
private Long selfAdditionValue;
|
||||
}
|
@ -0,0 +1,82 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/9/24 7:17 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DATASOURCE")
|
||||
@Api("地址清单")
|
||||
public class MesDatasource extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7387559860198655900L;
|
||||
@Column(name = "DS_CODE")
|
||||
@ApiParam("数据源代码")
|
||||
private String dsCode;
|
||||
|
||||
@Column(name = "DS_NAME")
|
||||
@ApiParam("数据源名称")
|
||||
private String dsName;
|
||||
|
||||
@Column(name = "DS_TYPE")
|
||||
@ApiParam("数据源类型")
|
||||
private String dsType;
|
||||
|
||||
@Column(name = "DS_HOST")
|
||||
@ApiParam("主机")
|
||||
private String dsHost;
|
||||
|
||||
@Column(name = "DS_PORT")
|
||||
@ApiParam("端口")
|
||||
private Integer dsPort;
|
||||
|
||||
@Column(name = "DS_USER")
|
||||
@ApiParam("用户名")
|
||||
private String dsUser;
|
||||
|
||||
@Column(name = "DS_PASSWORD")
|
||||
@ApiParam("密码")
|
||||
private String dsPassword;
|
||||
|
||||
@Column(name = "DS_DB_NAME")
|
||||
@ApiParam("数据库名称")
|
||||
private String dsDbName;
|
||||
|
||||
@Column(name = "EQUIPMENT_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MesDatasource{" +
|
||||
"dsCode='" + dsCode + '\'' +
|
||||
", dsName='" + dsName + '\'' +
|
||||
", dsType='" + dsType + '\'' +
|
||||
", dsHost='" + dsHost + '\'' +
|
||||
", dsPort=" + dsPort +
|
||||
", dsUser='" + dsUser + '\'' +
|
||||
", dsPassword='" + dsPassword + '\'' +
|
||||
", dsDbName='" + dsDbName + '\'' +
|
||||
", equipmentCode='" + equipmentCode + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:25
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT")
|
||||
@Api("缺陷表")
|
||||
public class MesDefect extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -6771813937279359333L;
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "DEFECT_TYPE")
|
||||
@ApiParam("缺陷类型")
|
||||
private String defectType;
|
||||
|
||||
@Column(name = "PROD_CFG_TYPE_CODE")
|
||||
@ApiParam("项目代码")
|
||||
private String prodCfgTypeCode;
|
||||
|
||||
@Column(name = "DEFECT_FLAG_VALUE")
|
||||
@ApiParam("缺陷标识值")
|
||||
private String defectFlagValue;
|
||||
|
||||
@Column(name = "DEFECT_ACTION_TYPE")
|
||||
@ApiParam("不良处理类型")
|
||||
private String defectActionType;
|
||||
|
||||
@Transient
|
||||
@ApiParam("缺陷类型名称")
|
||||
private String defectTypeName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("缺陷位置")
|
||||
private String defectLocation;
|
||||
|
||||
@Transient
|
||||
@ApiParam("缺陷类型子集")
|
||||
private List<MesDefect> mesDefectList;
|
||||
|
||||
public MesDefect() {
|
||||
|
||||
}
|
||||
|
||||
public MesDefect(String defectCode, String defectName, String defectType, String defectTypeName) {
|
||||
this.defectCode = defectCode;
|
||||
this.defectName = defectName;
|
||||
this.defectType = defectType;
|
||||
this.defectTypeName = defectTypeName;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:28
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT_CAUSE")
|
||||
@Api("缺陷原因表")
|
||||
public class MesDefectCause extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3867250593038812861L;
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因名称")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "DC_TYPE")
|
||||
@ApiParam("缺陷原因类型")
|
||||
private String dcType;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 19:53
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DEFECT_RECORD", indexes = {
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("不良信息记录表")
|
||||
public class MesDefectRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2828208776424343584L;
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "DEFECT_LOCATION")
|
||||
@ApiParam("缺陷位置")
|
||||
private String defectLocation;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "REPAIR_STATUS")
|
||||
@ApiParam("维修状态")
|
||||
private Integer repairStatus;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Transient
|
||||
private List<MesDefect> mesDefectList;
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 15:03
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DISMANTLE_RECORD", indexes = {
|
||||
@Index(columnList = "SN"),
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("物料拆解记录表")
|
||||
public class MesDismantleRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7924346039878218038L;
|
||||
@Column(name = "DISMANTLE_ID")
|
||||
@ApiParam("拆解编号")
|
||||
private String dismantleId;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PARENT_PART_NO")
|
||||
@ApiParam("产品物料编码")
|
||||
private String parentPartNo;
|
||||
|
||||
@Column(name = "PARENT_PART_NAME")
|
||||
@ApiParam("产品物料名称")
|
||||
private String parentPartName;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("产品条码")
|
||||
private String sn;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("产品数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "DISMANTLE_QTY")
|
||||
@ApiParam("拆解数")
|
||||
private BigDecimal dismantleQty;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子物料编码")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("子物料名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "OK_QTY")
|
||||
@ApiParam("合格数")
|
||||
private BigDecimal okQty;
|
||||
|
||||
@Column(name = "MISS_QTY")
|
||||
@ApiParam("缺失数")
|
||||
private BigDecimal missQty;
|
||||
|
||||
@Column(name = "SCRAP_QTY")
|
||||
@ApiParam("报废数")
|
||||
private BigDecimal scrapQty;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("关联批次")
|
||||
private String lotNo;
|
||||
|
||||
@Transient
|
||||
private String serialNumber;
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/9/23 18:47
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EQU_ALARM_RECORD", indexes = {
|
||||
@Index(columnList = "WORK_CENTER_CODE")
|
||||
})
|
||||
@Api("设备自动报警记录表")
|
||||
public class MesEquAlarmRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1675134362612851879L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "ALARM_LEVEL")
|
||||
@ApiParam("报警等级")
|
||||
private Integer alarmLevel;
|
||||
|
||||
@Column(name = "ALARM_START_TIME")
|
||||
@ApiParam("报警开始时间")
|
||||
private String alarmStartTime;
|
||||
|
||||
@Column(name = "ALARM_STOP_TIME")
|
||||
@ApiParam("报警开始时间")
|
||||
private String alarmStopTime;
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :生产设备
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EQUIPMENT")
|
||||
@Api("生产设备")
|
||||
public class MesEquipment extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 7269069290035250108L;
|
||||
@Column(name = "EQUIPMENT_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Column(name = "EQUIPMENT_NAME")
|
||||
@ApiParam("设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("设备状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "EQUIPMENT_TYPE")
|
||||
@ApiParam("设备类型")
|
||||
private Integer equipmentType;
|
||||
|
||||
@Column(name = "EQUIPMENT_CATEGORY")
|
||||
@ApiParam("设备类别")
|
||||
private String equipmentCategory;
|
||||
|
||||
@Column(name = "EQUIPMENT_MODEL")
|
||||
@ApiParam("型号")
|
||||
private String equipmentModel;
|
||||
|
||||
@Column(name = "EQUIPMENT_SPEC")
|
||||
@ApiParam("规格")
|
||||
private String equipmentSpec;
|
||||
|
||||
@Column(name = "EQUIPMENT_MAKER")
|
||||
@ApiParam("制造商")
|
||||
private String equipmentMaker;
|
||||
|
||||
@Column(name = "RELEASE_DATE")
|
||||
@ApiParam("出厂日期")
|
||||
private String releaseDate;
|
||||
|
||||
@Column(name = "RECEIVE_DATE")
|
||||
@ApiParam("接收日期")
|
||||
private String receiveDate;
|
||||
|
||||
@Column(name = "ENABLE_DATE")
|
||||
@ApiParam("启用日期")
|
||||
private String enableDate;
|
||||
|
||||
@Column(name = "CONNECT_TYPE")
|
||||
@ApiParam("连接类型")
|
||||
private Integer connectType;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "名称")
|
||||
private String name;
|
||||
|
||||
// 默认值 -1
|
||||
@Transient
|
||||
@ApiParam(value = "父节点", access = "父节点", example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long parentId;
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/7/30 9:30 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ESOP")
|
||||
@Api("作业指导书信息表(ODS)")
|
||||
public class MesEsop extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4869646502033099294L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam("工步代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "STEP_SEQ")
|
||||
@ApiParam("工步序号")
|
||||
private Integer stepSeq;
|
||||
|
||||
@Column(name = "FILE_ID")
|
||||
@ApiParam("文件id")
|
||||
private Long fileId;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
@Transient
|
||||
@ApiParam("组名")
|
||||
private String groupName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件原名")
|
||||
private String fileOriginName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件大小")
|
||||
private String fileSize;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件类型名称")
|
||||
private String fileType;
|
||||
|
||||
@Transient
|
||||
@ApiParam("同步标记")
|
||||
private Integer syncTag = 0;
|
||||
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务事件
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EVENT")
|
||||
@Api("系统业务事件")
|
||||
public class MesEvent extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -5604724665202938464L;
|
||||
@Column(name = "EVENT_CODE")
|
||||
@ApiParam("事件代码")
|
||||
private String eventCode;
|
||||
|
||||
@Column(name = "EVENT_NAME")
|
||||
@ApiParam("事件名称")
|
||||
private String eventName;
|
||||
|
||||
@Column(name = "EVENT_TYPE")
|
||||
@ApiParam("事件类型")
|
||||
private Integer eventType;
|
||||
|
||||
@Column(name = "BUTTON_CODE")
|
||||
@ApiParam("按钮代码")
|
||||
private String buttonCode;
|
||||
|
||||
public int getEventTypeVal() {
|
||||
return this.eventType == null ? 0 : this.eventType;
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务事件动作
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EVENT_ACTION")
|
||||
@Api("系统业务事件动作")
|
||||
public class MesEventAction extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 3964084375279916831L;
|
||||
@Column(name = "EVENT_CODE")
|
||||
@ApiParam("事件代码")
|
||||
private String eventCode;
|
||||
|
||||
@Column(name = "ACTION_CODE")
|
||||
@ApiParam("动作代码")
|
||||
private String actionCode;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("序号")
|
||||
private Integer seq;
|
||||
|
||||
public int getSeqVal() {
|
||||
return this.seq == null ? 0 : this.seq;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/10/10 8:37 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_FI_CFG")
|
||||
@Api("首检件配置")
|
||||
public class MesFiCfg extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1791614973371037158L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Column(name = "FI_QTY")
|
||||
@ApiParam("首检数量")
|
||||
private Double fiQty;
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/12/4 1:28 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_FILE")
|
||||
@Api("文件表")
|
||||
public class MesFile extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7017379708394714424L;
|
||||
@Column(name = "FILE_NAME")
|
||||
@ApiParam("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@Column(name = "FILE_URL")
|
||||
@ApiParam("文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
@Column(name = "GROUP_NAME")
|
||||
@ApiParam("组名")
|
||||
private String groupName;
|
||||
|
||||
@Column(name = "FILE_ORIGIN_NAME")
|
||||
@ApiParam("文件原名")
|
||||
private String fileOriginName;
|
||||
|
||||
@Column(name = "FILE_SIZE")
|
||||
@ApiParam("文件大小")
|
||||
private String fileSize;
|
||||
|
||||
@Column(name = "FILE_TYPE")
|
||||
@ApiParam("文件类型名称")
|
||||
private String fileType;
|
||||
|
||||
@Column(name = "SYNC_TAG")
|
||||
@ApiParam("同步标记")
|
||||
private Integer syncTag = 0;
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :物料关键数据
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-05-15
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_KP_DATA")
|
||||
@Api("生产区域")
|
||||
public class MesKpData extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -3332582267186642790L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "KEY_DATA_CODE")
|
||||
@ApiParam("关键数据代码")
|
||||
private String keyDataCode;
|
||||
|
||||
@Column(name = "KEY_DATA_NAME")
|
||||
@ApiParam("关键数据名称")
|
||||
private String keyDataName;
|
||||
|
||||
@Column(name = "KEY_DATA_COUNT")
|
||||
@ApiParam("关键数据数量")
|
||||
private Integer keyDataCount;
|
||||
|
||||
@Column(name = "UPPER_LIMIT")
|
||||
@ApiParam("数据上限")
|
||||
private Double upperLimit;
|
||||
|
||||
@Column(name = "LOWER_LIMIT")
|
||||
@ApiParam("数据下限")
|
||||
private Double lowerLimit;
|
||||
|
||||
@Transient
|
||||
@ApiParam("扭矩值")
|
||||
private Double torqueValue;
|
||||
|
||||
@Transient
|
||||
@ApiParam("是否在范围之内")
|
||||
private Boolean ok;
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_KPSN_RULE")
|
||||
@Api("关键件条码校验规则")
|
||||
public class MesKpsnRule extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8238308232531730720L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "LENGTH")
|
||||
@ApiParam("长度")
|
||||
private Integer length;
|
||||
|
||||
@Column(name = "FROM1")
|
||||
@ApiParam("起始1")
|
||||
private Integer from1;
|
||||
|
||||
@Column(name = "TO1")
|
||||
@ApiParam("至1")
|
||||
private Integer to1;
|
||||
|
||||
@Column(name = "FIX1")
|
||||
@ApiParam("内容1")
|
||||
private String fix1;
|
||||
|
||||
@Column(name = "FROM2")
|
||||
@ApiParam("起始2")
|
||||
private Integer from2;
|
||||
|
||||
@Column(name = "TO2")
|
||||
@ApiParam("至2")
|
||||
private Integer to2;
|
||||
|
||||
@Column(name = "FIX2")
|
||||
@ApiParam("内容2")
|
||||
private String fix2;
|
||||
|
||||
@Column(name = "TYPE")
|
||||
@ApiParam("类型")
|
||||
private String type;
|
||||
|
||||
@Column(name = "BIND_RULE")
|
||||
@ApiParam("绑定规则")
|
||||
private Integer bandRule;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
public int getLengthVal() {
|
||||
return this.length == null ? 0 : this.length;
|
||||
}
|
||||
|
||||
public int getFrom1Val() {
|
||||
return this.from1 == null ? 0 : this.from1;
|
||||
}
|
||||
|
||||
public int getTo1Val() {
|
||||
return this.to1 == null ? 0 : this.to1;
|
||||
}
|
||||
|
||||
public int getFrom2Val() {
|
||||
return this.from2 == null ? 0 : this.from2;
|
||||
}
|
||||
|
||||
public int getTo2Val() {
|
||||
return this.to2 == null ? 0 : this.to2;
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_LABEL_TEMPLATE")
|
||||
@Api(value = "打印模板", description = "打印模板")
|
||||
public class MesLabelTemplate extends BaseBean implements Serializable {
|
||||
|
||||
|
||||
private static final long serialVersionUID = 3797103812377146878L;
|
||||
@Column(name = "TEMPLATE_CODE")
|
||||
@ApiParam(value = "模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name = "TEMPLATE_NAME")
|
||||
@ApiParam(value = "模板名称")
|
||||
private String templateName;
|
||||
|
||||
@Lob
|
||||
@Column(name = "TEMPLATE_CONTENT")
|
||||
@ApiParam(value = "模板内容")
|
||||
private String templateContent;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value = "模板参数拼接")
|
||||
@Transient
|
||||
private String paramsPack;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "模板id对应的模板参数")
|
||||
private List<MesLabelTemplateParam> labelTemplateParamList;
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description : 打印模板参数
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-18 11:00
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_LABEL_TEMPLATE_PARAM")
|
||||
@Api(value = "打印模板参数", description = "打印模板参数")
|
||||
public class MesLabelTemplateParam extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3595706874099358555L;
|
||||
@Column(name = "TEMPLATE_ID")
|
||||
@ApiParam(value = "模板ID", access = "模板ID", example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long templateId;
|
||||
|
||||
@Column(name = "TEMPLATE_CODE")
|
||||
@ApiParam(value = "模板代码")
|
||||
private String templateCode;
|
||||
|
||||
@Column(name = "TEMPLATE_PARAM")
|
||||
@ApiParam(value = "模板参数")
|
||||
private String templateParam;
|
||||
|
||||
@Lob
|
||||
@Column(name = "TEMPLATE_PARAM_TEXT")
|
||||
@ApiParam(value = "模板参数描述")
|
||||
private String templateParamText;
|
||||
|
||||
// 参数拼接,多参数都好分隔,后台在做处理
|
||||
@ApiParam(value = "模板参数值")
|
||||
@Transient
|
||||
private String templateParamValue;
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/1/8 0008 - 17:11
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_MONITOR_TASK")
|
||||
@Api("监听任务")
|
||||
public class MesMonitorTask extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8614480099840448294L;
|
||||
@Column(name = "TASK_NO")
|
||||
@ApiParam("任务编号")
|
||||
private String taskNo;
|
||||
|
||||
@Column(name = "TASK_NAME")
|
||||
@ApiParam("任务名称")
|
||||
private String taskName;
|
||||
|
||||
@Column(name = "TASK_OBJECT_TYPE")
|
||||
@ApiParam("任务对象类型")
|
||||
private Integer taskObjectType;
|
||||
|
||||
@Column(name = "TASK_STATUS")
|
||||
@ApiParam("任务状态")
|
||||
private Integer taskStatus;
|
||||
|
||||
@Column(name = "TASK_EXCEPTION_DESC")
|
||||
@ApiParam("异常描述")
|
||||
private String taskExceptionDesc;
|
||||
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/1/8 0008 - 17:19
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_MONITOR_TASK_DETAIL")
|
||||
@Api("监听任务明细")
|
||||
public class MesMonitorTaskDetail extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4811270359386960747L;
|
||||
@Column(name = "TASK_NO")
|
||||
@ApiParam("任务编号")
|
||||
private String taskNo;
|
||||
|
||||
@Column(name = "DATA_OBJECT_NO")
|
||||
@ApiParam("数据对象编号")
|
||||
private String dataObjectNo;
|
||||
|
||||
// @Column(name = "STORE_OBJECT_CODE")
|
||||
// @ApiParam("存储对象代码")
|
||||
// private String storeObjectCode;
|
||||
//
|
||||
// @Column(name = "STORE_FIELD_CODE")
|
||||
// @ApiParam("存储字段代码")
|
||||
// private String storeFieldCode;
|
||||
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/8/22 5:59 PM
|
||||
* @Description:
|
||||
**/
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_NUMBER_RULE")
|
||||
@Api("条码生成规则")
|
||||
public class MesNumberRule extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -4039194855353751178L;
|
||||
@Column(name = "RULE_CODE")
|
||||
@ApiParam("规则代码")
|
||||
private String ruleCode;
|
||||
|
||||
@Column(name = "RULE_DESC")
|
||||
@ApiParam("规则描述")
|
||||
private String ruleDesc;
|
||||
|
||||
@Column(name = "PREFIX")
|
||||
@ApiParam("前缀")
|
||||
private String prefix;
|
||||
|
||||
@Column(name = "NUMBER_RULE")
|
||||
@ApiParam("编码规则")
|
||||
private String numberRule;
|
||||
|
||||
@Column(name = "SERIALNO_LENGTH")
|
||||
@ApiParam("序号长度")
|
||||
private Integer serialnoLength;
|
||||
|
||||
@Column(name = "SERIALNO_INCREMENT")
|
||||
@ApiParam("增量")
|
||||
private Integer serialnoIncrement;
|
||||
|
||||
@Column(name = "IS_CYCLE")
|
||||
@ApiParam("最大值后循环")
|
||||
private Integer isCycle;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Version;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/8/23 9:14 AM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_NUMBER_SERIALNO")
|
||||
@Api("编码序号")
|
||||
public class MesNumberSerialno extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3024166851634742872L;
|
||||
@Column(name = "CURRENT_NUMBER_PREFIX")
|
||||
@ApiParam("当前编号前缀")
|
||||
private String currentNumberPrefix;
|
||||
|
||||
@Column(name = "CURRENT_SERIALNO")
|
||||
@ApiParam("当前序号")
|
||||
private Integer currentSerialno;
|
||||
|
||||
@Column(name = "CURRENT_NUMBER")
|
||||
@ApiParam("当前编号")
|
||||
private String currentNumber;
|
||||
|
||||
@Version
|
||||
@Column(name = "LOCK_VERSION")
|
||||
@ApiParam(value = "乐观锁", example = "1")
|
||||
public transient Integer lockVersion;
|
||||
}
|
@ -0,0 +1,60 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/9/24 7:14 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_OBJECT_CFG")
|
||||
@Api("对象结构")
|
||||
public class MesObjectCfg extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -3640782210450491835L;
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "FIELD_CODE")
|
||||
@ApiParam("字段代码")
|
||||
private String fieldCode;
|
||||
|
||||
@Column(name = "FIELD_NAME")
|
||||
@ApiParam("字段名称")
|
||||
private String fieldName;
|
||||
|
||||
@Column(name = "FIELD_TYPE")
|
||||
@ApiParam("字段类型")
|
||||
private String fieldType;
|
||||
|
||||
@Column(name = "FIELD_LENGTH")
|
||||
@ApiParam("列长度")
|
||||
private Integer fieldLength;
|
||||
|
||||
@Column(name = "POJO_ATTR")
|
||||
@ApiParam("对应的pojo属性")
|
||||
private String pojoAttr;
|
||||
|
||||
@Column(name = "IS_SAVE")
|
||||
@ApiParam("是否保存 1存 2不存")
|
||||
private Integer isSave;
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :PLC设备信息配置表
|
||||
* @Reference :
|
||||
* @Author : Crish
|
||||
* @CreateDate : 2019-05-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PLC_CONFIGURE")
|
||||
@Api("PLC设备信息配置表")
|
||||
@Deprecated
|
||||
public class MesPLCConfigure extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8274445475806774L;
|
||||
@Column(name = "IP")
|
||||
@ApiParam("设备ip")
|
||||
private String ipAddress;
|
||||
|
||||
@Column(name = "CHANNEL_NAME")
|
||||
@ApiParam("通道名称")
|
||||
private String channelName;
|
||||
|
||||
@Column(name = "DEVICE_NAME")
|
||||
@ApiParam("设备地址")
|
||||
private String deviceName;
|
||||
|
||||
@Column(name = "TAG_NAME")
|
||||
@ApiParam("标签地址")
|
||||
private String tagName;
|
||||
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
}
|
@ -0,0 +1,99 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
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;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :包装规格
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACK_SPEC")
|
||||
@Api("包装规格")
|
||||
public class MesPackSpec extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -788654193624068327L;
|
||||
@Column(name = "SPEC_CODE")
|
||||
@ApiParam("包装规格代码")
|
||||
private String specCode;
|
||||
|
||||
@Column(name = "SPEC_NAME")
|
||||
@ApiParam("包装规格名称")
|
||||
private String specName;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量", example = "0")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "QTY2")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量2", example = "0")
|
||||
private Double qty2;
|
||||
|
||||
@Column(name = "QTY3")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量3", example = "0")
|
||||
private Double qty3;
|
||||
|
||||
@Column(name = "QTY4")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "包装数量4", example = "0")
|
||||
private Double qty4;
|
||||
|
||||
@Column(name = "IS_MIXED")
|
||||
@ApiParam("是否混包")
|
||||
private Integer isMixed;
|
||||
|
||||
@Column(name = "IS_MIXED2")
|
||||
@ApiParam("是否混包2")
|
||||
private Integer isMixed2;
|
||||
|
||||
@Column(name = "IS_MIXED3")
|
||||
@ApiParam("是否混包3")
|
||||
private Integer isMixed3;
|
||||
|
||||
@Column(name = "IS_MIXED4")
|
||||
@ApiParam("是否混包4")
|
||||
private Integer isMixed4;
|
||||
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public int getIsMixedVal() {
|
||||
return this.isMixed == null ? 0 : this.isMixed;
|
||||
}
|
||||
|
||||
public int getIsMixed2Val() {
|
||||
return this.isMixed2 == null ? 0 : this.isMixed2;
|
||||
}
|
||||
|
||||
public int getIsMixed3Val() {
|
||||
return this.isMixed3 == null ? 0 : this.isMixed3;
|
||||
}
|
||||
|
||||
public int getIsMixed4Val() {
|
||||
return this.isMixed4 == null ? 0 : this.isMixed4;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 2:55 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACKAGE_DETAIL", indexes = {@Index(columnList = "PACKAGE_NO")
|
||||
}, uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "PACKAGE_NO", "SERIAL_NUMBER"})
|
||||
}
|
||||
)
|
||||
@Api("包装规格明细")
|
||||
public class MesPackageDetail extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8162606304720621672L;
|
||||
@Column(name = "PACKAGE_NO", nullable = false)
|
||||
@ApiParam("包装编码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER", nullable = false)
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料编号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "PACKAGE_NO2")
|
||||
@ApiParam("包装编码2")
|
||||
private String packageNo2;
|
||||
|
||||
@Column(name = "PACKAGE_NO3")
|
||||
@ApiParam("包装编码3")
|
||||
private String packageNo3;
|
||||
|
||||
@Column(name = "PACKAGE_NO4")
|
||||
@ApiParam("包装编码4")
|
||||
private String packageNo4;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/18 3:23 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PACKAGE_TRAVEL", indexes = {@Index(columnList = "PACKAGE_NO")})
|
||||
@Api("包装履历表")
|
||||
public class MesPackageTravel extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2808747095415676213L;
|
||||
@Column(name = "PACKAGE_NO")
|
||||
@ApiParam("包装编码")
|
||||
private String packageNo;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "OP_TYPE")
|
||||
@ApiParam("操作类型")
|
||||
private Integer opType;
|
||||
|
||||
@Column(name = "PACKAGE_NO2")
|
||||
@ApiParam("包装编码2")
|
||||
private String packageNo2;
|
||||
|
||||
@Column(name = "PACKAGE_NO3")
|
||||
@ApiParam("包装编码3")
|
||||
private String packageNo3;
|
||||
|
||||
@Column(name = "PACKAGE_NO4")
|
||||
@ApiParam("包装编码4")
|
||||
private String packageNo4;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :物料信息
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PART")
|
||||
@Api("物料信息")
|
||||
public class MesPart extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 3936033255397936854L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("零件名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "BRIEF_TEXT")
|
||||
@ApiParam("零件简称")
|
||||
private String briefText;
|
||||
|
||||
@Column(name = "PART_SPEC")
|
||||
@ApiParam("零件规格")
|
||||
private String partSpec;
|
||||
|
||||
@Column(name = "CATEGORY_CODE1")
|
||||
@ApiParam("分类1")
|
||||
private String categoryCode1;
|
||||
|
||||
@Column(name = "CATEGORY_CODE2")
|
||||
@ApiParam("分类2")
|
||||
private String categoryCode2;
|
||||
|
||||
@Column(name = "CATEGORY_CODE3")
|
||||
@ApiParam("分类3")
|
||||
private String categoryCode3;
|
||||
|
||||
@Column(name = "UNIT")
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@Column(name = "PACK_SPEC_CODE")
|
||||
@ApiParam("包装规格代码")
|
||||
private String packSpecCode;
|
||||
|
||||
@Column(name = "DEFAULT_WORK_CENTER")
|
||||
@ApiParam("默认工作中心")
|
||||
private String defaultWorkCenter;
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCategoryCode;
|
||||
|
||||
@Column(name = "PROCESS_MATCH_TYPE")
|
||||
@ApiParam("过程编码匹配类型")
|
||||
private Integer processMatchType;
|
||||
|
||||
@Column(name = "PACKAGE_MATCH_TYPE")
|
||||
@ApiParam("包装编码匹配类型")
|
||||
private Integer packageMatchType;
|
||||
|
||||
@Column(name = "PRODUCT_MATCH_TYPE")
|
||||
@ApiParam("产品编码匹配类型")
|
||||
private Integer productMatchType;
|
||||
|
||||
@Transient
|
||||
@ApiParam("分类名称")
|
||||
private String categoryName;
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :零件种类
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PART_CATEGORY")
|
||||
@Api("零件种类")
|
||||
public class MesPartCategory extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 9076081904146489470L;
|
||||
@Column(name = "CATEGORY_CODE")
|
||||
@ApiParam("分类代码")
|
||||
private String categoryCode;
|
||||
|
||||
@Column(name = "CATEGORY_NAME")
|
||||
@ApiParam("分类名称")
|
||||
private String categoryName;
|
||||
|
||||
@Column(name = "CATEGORY_TYPE")
|
||||
@ApiParam("分类类型")
|
||||
private String categoryType;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/3/16 0016 - 15:50
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PART_FORMULA")
|
||||
@Api("MES_物料配方")
|
||||
public class MesPartFormula extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3120650997069271308L;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "FORMULA_CONTENT")
|
||||
@ApiParam("配方内容")
|
||||
private String formulaContent;
|
||||
|
||||
@Column(name = "FORMULA_TYPE")
|
||||
@ApiParam("配方类型")
|
||||
private Integer formulaType;
|
||||
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Lob;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :JIS发运模式
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-12-25
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PATTERN_JIS")
|
||||
@Api("JIS发运模式")
|
||||
public class MesPatternJis extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1119289554542499312L;
|
||||
@Column(name = "PATTERN_NO")
|
||||
@ApiParam("模式编号")
|
||||
private String patternNo;
|
||||
|
||||
@Column(name = "PATTERN_NAME")
|
||||
@ApiParam("模式名称")
|
||||
private String patternName;
|
||||
|
||||
@Column(name = "QUEUE_NO")
|
||||
@ApiParam("显示主队列数")
|
||||
private Integer queueNo;
|
||||
|
||||
@Column(name = "HANDLE_NO")
|
||||
@ApiParam("一次处理套数")
|
||||
private Integer handleNo;
|
||||
|
||||
@Column(name = "PATTERN_DESC")
|
||||
@ApiParam("描述")
|
||||
private String patternDesc;
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型组")
|
||||
private String produceCategoryCode;
|
||||
|
||||
@Column(name = "PATTERN_TYPE")
|
||||
@ApiParam("模式类型")
|
||||
private Integer patternType;
|
||||
|
||||
@Lob
|
||||
@Column(name = "RULE")
|
||||
@ApiParam("规则")
|
||||
private String rule;
|
||||
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: yiming.gu
|
||||
* @CreateDate:2019-04-22-17:20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN")
|
||||
@Api("PCN节点")
|
||||
public class MesPcn extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -7570827672640277097L;
|
||||
@Column(name = "PCN_CODE")
|
||||
@ApiParam("PCN代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name = "PCN_NAME")
|
||||
@ApiParam("PCN名称")
|
||||
private String pcnName;
|
||||
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("区域")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name = "AREA_NAME")
|
||||
@ApiParam("区域名称")
|
||||
private String areaName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CENTER_NAME")
|
||||
@ApiParam("工作中心名称")
|
||||
private String workCenterName;
|
||||
|
||||
@Column(name = "PCN_VERSION")
|
||||
@ApiParam("PCN版本")
|
||||
private String pcnVersion;
|
||||
|
||||
@Column(name = "CONNECT_IP")
|
||||
@ApiParam("连接IP")
|
||||
private String connectIp;
|
||||
|
||||
@Column(name = "CONNECT_COUNT")
|
||||
@ApiParam("连接次数")
|
||||
private Integer connectCount;
|
||||
|
||||
@Column(name = "IS_CONNECT")
|
||||
@ApiParam("是否连接")
|
||||
private Integer isConnect;
|
||||
|
||||
@Column(name = "CONNECT_TIME")
|
||||
@ApiParam("连接时间")
|
||||
private String connectTime;
|
||||
|
||||
@Column(name = "CODE_SPECIFIC")
|
||||
@ApiParam("PCN特殊字段")
|
||||
private String codeSpecific;
|
||||
|
||||
public int getConnectCountVal() {
|
||||
return this.connectCount == null ? 0 : this.connectCount;
|
||||
}
|
||||
|
||||
public int getIsConnectVal() {
|
||||
return this.isConnect == null ? 0 : this.isConnect;
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: yiming.gu
|
||||
* @CreateDate:2019-04-22-17:20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_CONNECT_LOG")
|
||||
@Api("PCN节点连接日志")
|
||||
public class MesPcnConnectLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -4153357131289178766L;
|
||||
@Column(name = "PCN_CODE")
|
||||
@ApiParam("PCN代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name = "PCN_NAME")
|
||||
@ApiParam("PCN名称")
|
||||
private String pcnName;
|
||||
|
||||
@Column(name = "PCN_VERSION")
|
||||
@ApiParam("PCN版本")
|
||||
private String pcnVersion;
|
||||
|
||||
@Column(name = "CONNECT_IP")
|
||||
@ApiParam("连接IP")
|
||||
private String connectIp;
|
||||
|
||||
@Column(name = "IS_CONNECT")
|
||||
@ApiParam("是否连接")
|
||||
private Integer isConnect;
|
||||
|
||||
@Column(name = "REMARK")
|
||||
@ApiParam("备注")
|
||||
private String Remark;
|
||||
}
|
@ -0,0 +1,92 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: yiming.gu
|
||||
* @CreateDate:2019-04-22-17:32
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_SYNC_CFG")
|
||||
@Api("MES_PCN_同步配置")
|
||||
public class MesPcnSyncCfg extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -6869288362923390521L;
|
||||
@Column(name = "PCN_CODE")
|
||||
@ApiParam("PCN代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OBJECT_NAME")
|
||||
@ApiParam("对象名称")
|
||||
private String objectName;
|
||||
|
||||
@Column(name = "OBJECT_KEY")
|
||||
@ApiParam("对象主键")
|
||||
private String objectKey;
|
||||
|
||||
@Column(name = "SYNC_FREQUENCY")
|
||||
@ApiParam("同步频率")
|
||||
private Integer syncFrequency;
|
||||
|
||||
@Column(name = "SYNC_TIME")
|
||||
@ApiParam(value = "同步时间")
|
||||
private String syncTime;
|
||||
|
||||
@Column(name = "SYNC_PATTERN")
|
||||
@ApiParam("同步方式 2.新增 1.修改")
|
||||
private Integer syncPattern;
|
||||
|
||||
@Column(name = "SYNC_TYPE")
|
||||
@ApiParam("同步类型 1.pcn获取mes数据 2.pcn推送数据至mes")
|
||||
private Integer syncType;
|
||||
|
||||
@Column(name = "LAST_SYNC_TIME")
|
||||
@ApiParam(value = "上一同步时间")
|
||||
private String lastSyncTime;
|
||||
|
||||
@Column(name = "EXTRACT_GAP")
|
||||
@ApiParam(value = "从数据库抽取的最大值 目前为分钟为限制")
|
||||
private Integer extractGap;
|
||||
|
||||
@Column(name = "EXTRACT_CONDITION")
|
||||
@ApiParam(value = "从数据库抽取的条件限制")
|
||||
private String extractCondition;
|
||||
|
||||
@Column(name = "IS_IGNORE_ORG")
|
||||
@ApiParam(value = "同步的时候是否区分工厂")
|
||||
private Integer isIgnoreOrg = CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
|
||||
|
||||
public int getSyncFrequencyVal() {
|
||||
return this.syncFrequency == null ? 0 : this.syncFrequency;
|
||||
}
|
||||
|
||||
public int getSyncTypeVal() {
|
||||
return this.syncType == null ? 0 : this.syncType;
|
||||
}
|
||||
|
||||
public int getSyncPatternVal() {
|
||||
return this.syncPattern == null ? 0 : this.syncPattern;
|
||||
}
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Lob;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: yiming.gu
|
||||
* @CreateDate:2019-04-22-17:20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_SYNC_ERRORLOG")
|
||||
@Api("MES_PCN同步异常日志")
|
||||
public class MesPcnSyncErrorLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2249754641660006488L;
|
||||
@Column(name = "PCN_CODE")
|
||||
@ApiParam("PCN代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OBJECT_NAME")
|
||||
@ApiParam("对象名称")
|
||||
private String objectName;
|
||||
|
||||
@Column(name = "ERROR_SPOT")
|
||||
@ApiParam("异常位置")
|
||||
private String errorSpot;
|
||||
|
||||
@Lob
|
||||
@Column(name = "ERROR_CONTENT")
|
||||
@ApiParam("异常内容")
|
||||
private String errorContent;
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 账号离线登陆表
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-09-01 11:02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_SYS_USER_OFFLINE")
|
||||
@Api(value = "账号离线登陆表", description = "账号离线登陆表。")
|
||||
public class MesPcnSysUserOffline extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 7617353154826718154L;
|
||||
@Column(name = "USER_ID")
|
||||
@ApiParam(value = "人员ID", example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "USER_CODE")
|
||||
@ApiParam(value = "用户编号", access = "用户编号")
|
||||
private String userCode;
|
||||
|
||||
@Column(name = "USER_NAME")
|
||||
@ApiParam(value = "用户名称", access = "账号名称")
|
||||
private String userName;
|
||||
|
||||
@Column(name = "LOGIN_NAME")
|
||||
@ApiParam(value = "登陆名称", access = "登陆名称")
|
||||
private String loginName;
|
||||
|
||||
@Column(name = "USER_TYPE")
|
||||
@ApiParam(value = "账号类型(枚举,待定)", example = "-1")
|
||||
private Integer userType;
|
||||
|
||||
@Lob
|
||||
@Column(name = "LOGIN_INFO")
|
||||
@ApiParam(value = "登陆信息", access = "登陆信息")
|
||||
private String loginInfo;
|
||||
|
||||
@Lob
|
||||
@Column(name = "MENU_LIST")
|
||||
@ApiParam(value = "菜单", access = "菜单")
|
||||
private String menuList;
|
||||
|
||||
@Lob
|
||||
@Column(name = "MODULE_LIST")
|
||||
@ApiParam(value = "模块", access = "模块")
|
||||
private String moduleList;
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes-pcn定时任务工作清单
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-08-26
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_TASK")
|
||||
@Api("mes-pcn定时任务工作清单")
|
||||
public class MesPcnTask extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4777357978430670966L;
|
||||
@Column(name = "TASK_CODE")
|
||||
@ApiParam("任务代码")
|
||||
private String taskCode;
|
||||
|
||||
@Column(name = "TASK_NAME")
|
||||
@ApiParam("任务名称")
|
||||
private String taskName;
|
||||
|
||||
@Column(name = "TASK_GROUP_NAME")
|
||||
@ApiParam("任务组名称")
|
||||
private String taskGroupName;
|
||||
|
||||
@Column(name = "TASK_DESCRIPTION")
|
||||
@ApiParam("任务描述")
|
||||
private String taskDescription;
|
||||
|
||||
@Column(name = "TASK_TYPE")
|
||||
@ApiParam("任务类型")
|
||||
private Integer taskType;
|
||||
|
||||
@Column(name = "TASK_MODULE")
|
||||
@ApiParam("任务模块")
|
||||
private String taskModule;
|
||||
|
||||
@Column(name = "TASK_CLASS")
|
||||
@ApiParam("任务类名")
|
||||
private String taskClass;
|
||||
|
||||
@Column(name = "TASK_PACKAGE")
|
||||
@ApiParam("任务包名")
|
||||
private String taskPackage;
|
||||
|
||||
@Column(name = "PCN_NAME")
|
||||
@ApiParam("PCN节点名称")
|
||||
private String pcnName;
|
||||
|
||||
@Column(name = "PCN_CODE")
|
||||
@ApiParam("PCN节点名称代码")
|
||||
private String pcnCode;
|
||||
|
||||
@Column(name = "TASK_CYCLE_EXPS")
|
||||
@ApiParam("任务周期表达式")
|
||||
private String taskCycleExps;
|
||||
|
||||
@Column(name = "TASK_CYCLE_DESCRIPTION")
|
||||
@ApiParam("任务周期描述")
|
||||
private String taskCycleDescription;
|
||||
|
||||
@Column(name = "TASK_PARAM")
|
||||
@ApiParam("任务参数")
|
||||
private String taskParam;
|
||||
|
||||
public int getTaskTypeVal() {
|
||||
return this.taskType == null ? 0 : this.taskType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes-pcn定时任务工作清单同步记录
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-08-27
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PCN_TASK_LOG")
|
||||
@Api("mes-pcn定时任务工作清单同步记录")
|
||||
public class MesPcnTaskLog extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -784806389462540310L;
|
||||
@Column(name = "SYNC_TIME_START")
|
||||
@ApiParam("同步数据开始时间")
|
||||
private String syncTimeStart;
|
||||
|
||||
@Column(name = "SYNC_TIME_END")
|
||||
@ApiParam("同步数据截止时间")
|
||||
private String syncTimeEnd;
|
||||
|
||||
@Column(name = "SYNC_STATUS")
|
||||
@ApiParam("同步状态")
|
||||
private Integer syncStatus;
|
||||
|
||||
@Column(name = "ERROR_CONTENT")
|
||||
@ApiParam("异常内容")
|
||||
private Long errorContent;
|
||||
|
||||
public int getSyncStatusVal() {
|
||||
return this.syncStatus == null ? 0 : this.syncStatus;
|
||||
}
|
||||
}
|
@ -0,0 +1,144 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PLAN_ORDER", indexes = {@Index(columnList = "ORDER_NO")
|
||||
}, uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "ORDER_NO"})
|
||||
}
|
||||
)
|
||||
@Api("生产主计划")
|
||||
public class MesPlanOrder extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8571104279843276872L;
|
||||
@Column(name = "ORDER_NO", nullable = false)
|
||||
@ApiParam("生产计划单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "PO_TYPE")
|
||||
@ApiParam("计划类型")
|
||||
private Integer planType;
|
||||
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "PLAN_QTY")
|
||||
@ApiParam("计划数量")
|
||||
private Double planQty;
|
||||
|
||||
@Column(name = "DECOMPOSE_QTY")
|
||||
@ApiParam("分解数量")
|
||||
private Double decomposeQty;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "START_TIME")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam("计划开始时间")
|
||||
private String startTime;
|
||||
|
||||
@Column(name = "END_TIME")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam("计划结束时间")
|
||||
private String endTime;
|
||||
|
||||
@Column(name = "DELIVERY_DATE")
|
||||
@ApiParam("交货日期")
|
||||
private String deliveryDate;
|
||||
|
||||
@Column(name = "CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Column(name = "CUST_ORDER_NO")
|
||||
@ApiParam("客户订单号")
|
||||
private String custOrderNo;
|
||||
|
||||
@Column(name = "SOURCE")
|
||||
@ApiParam("计划来源")
|
||||
private String source;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
/********************** 冗余字段 *********************************/
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "区域")
|
||||
public String areaCode;
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value = "创建日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
|
||||
public String startTimeStart;
|
||||
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value = "创建日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
|
||||
public String startTimeEnd;
|
||||
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value = "计划结束日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
|
||||
public String endTimeStart;
|
||||
|
||||
@Transient
|
||||
// @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
@ApiParam(value = "计划结束日期查询用,查询结束日期", example = "2018-12-31 23:59:59")
|
||||
public String endTimeEnd;
|
||||
|
||||
public double getPlanQtyVal() {
|
||||
return this.planQty == null ? 0.0d : this.planQty;
|
||||
}
|
||||
|
||||
public double getDecomposeQtyVal() {
|
||||
return this.decomposeQty == null ? 0.0d : this.decomposeQty;
|
||||
}
|
||||
|
||||
public int getStatusVal() {
|
||||
return this.status == null ? 0 : this.status;
|
||||
}
|
||||
|
||||
public int getPlanTypeVal() {
|
||||
return this.planType == null ? 0 : this.planType;
|
||||
}
|
||||
}
|
@ -0,0 +1,112 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/9/25 8:07 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PLC")
|
||||
@Api("PLC配置表")
|
||||
public class MesPlc extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -5346536604317095818L;
|
||||
@Column(name = "PLC_CODE")
|
||||
@ApiParam("PLC代码")
|
||||
private String plcCode;
|
||||
|
||||
@Column(name = "PLC_NAME")
|
||||
@ApiParam("PLC名称")
|
||||
private String plcName;
|
||||
|
||||
@Column(name = "PLC_MODEL")
|
||||
@ApiParam("PLC型号")
|
||||
private String plcModel;
|
||||
|
||||
@Column(name = "PLC_IP")
|
||||
@ApiParam("PLC IP")
|
||||
private String plcIp;
|
||||
|
||||
@Column(name = "CHANNEL")
|
||||
@ApiParam("通道")
|
||||
private String channel;
|
||||
|
||||
@Column(name = "TAG_NAME")
|
||||
@ApiParam("标签名称")
|
||||
private String tagName;
|
||||
|
||||
@Column(name = "TAG_ADDRESS")
|
||||
@ApiParam("标签地址")
|
||||
private String tagAddress;
|
||||
|
||||
@Column(name = "DATA_TYPE")
|
||||
@ApiParam("标签数据类型")
|
||||
private String dataType;
|
||||
|
||||
@Column(name = "GROUP_NAME")
|
||||
@ApiParam("分组名称")
|
||||
private String groupName;
|
||||
|
||||
@Column(name = "DEVICE")
|
||||
@ApiParam("驱动")
|
||||
private String device;
|
||||
|
||||
@Column(name = "EQUIPMENT_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PLC_CFG")
|
||||
@ApiParam("PLC的值的设定")
|
||||
private String plcCfg;
|
||||
|
||||
@Column(name = "ANALYSIS_RULE")
|
||||
@ApiParam("解析规则")
|
||||
private String analysisRule;
|
||||
|
||||
@Column(name = "IS_ANALYSIS")
|
||||
@ApiParam("是否解析")
|
||||
private String isAnalysis;
|
||||
|
||||
@Column(name = "FEED_VALUE")
|
||||
@ApiParam("反馈值")
|
||||
private String feedValue;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Transient
|
||||
@ApiParam("设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
@Column(name = "TOOLING_CODE ")
|
||||
@ApiParam("工装代码")
|
||||
private String toolingCode;
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :工序
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROCESS")
|
||||
@Api("工序")
|
||||
public class MesProcess extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2619648674238082872L;
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "PROCESS_NAME")
|
||||
@ApiParam("工序名称")
|
||||
private String processName;
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :产品绑定记录表
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_BIND_RECORD", indexes = {
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "KP_SN")
|
||||
})
|
||||
@Api("产品绑定记录表")
|
||||
public class MesProdBindRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -4319604821328717354L;
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam(value = "产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品条码零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam(value = "工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam(value = "工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam(value = "工步代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("原材料零件号")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "KP_SN")
|
||||
@ApiParam("原材料条码")
|
||||
private String kpSn;
|
||||
|
||||
@Column(name = "KP_QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "原材料数量", example = "0")
|
||||
private Double kpQty;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商")
|
||||
private String supplierCode;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("关联批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "IS_FEED")
|
||||
@ApiParam("是否投料配置")
|
||||
private Integer isFeed;
|
||||
|
||||
@Column(name = "VERSION")
|
||||
@ApiParam("版本")
|
||||
private String version;
|
||||
|
||||
@Column(name = "RESULT")
|
||||
@ApiParam(value = "结果")
|
||||
private String result;
|
||||
|
||||
@Column(name = "is_BIND_KEY")
|
||||
@ApiParam(value = "是否绑定关键件")
|
||||
private Integer isBindKey;
|
||||
|
||||
@Column(name = "ACTION_TYPE")
|
||||
@ApiParam(value = "动作类型")
|
||||
private Integer actionType;
|
||||
|
||||
public int getIsFeedVal() {
|
||||
return this.isFeed == null ? 0 : this.isFeed;
|
||||
}
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.kpQty == null ? 0.0d : this.kpQty;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :产品配置
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_CFG")
|
||||
@Api("产品配置")
|
||||
public class MesProdCfg extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 7487874316722319947L;
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "PROD_CFG_NAME")
|
||||
@ApiParam("产品配置名称")
|
||||
private String prodCfgName;
|
||||
|
||||
@Column(name = "PROD_CFG_Type_CODE")
|
||||
@ApiParam("产品配置类型代码")
|
||||
private String prodCfgTypeCode;
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :产品配置明细
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_CFG_DETAIL")
|
||||
@Api("产品配置明细")
|
||||
public class MesProdCfgDetail extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -8362302529703401583L;
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "IS_VIRTUAL")
|
||||
@ApiParam("是否虚零件")
|
||||
private Integer isVirtual;
|
||||
|
||||
@Transient
|
||||
@ApiParam("零件名称")
|
||||
private String partName;
|
||||
|
||||
public int getIsVirtualVal() {
|
||||
return this.isVirtual == null ? 0 : this.isVirtual;
|
||||
}
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/10/18 3:25 下午
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_PACK")
|
||||
@Api("产品包装关系")
|
||||
public class MesProdPack extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2621135811864108025L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CUSTOMER_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String customerCode;
|
||||
|
||||
@Column(name = "PACK_SPEC")
|
||||
@ApiParam("包装规格")
|
||||
private String packSpec;
|
||||
|
||||
@Column(name = "PROD_LABEL_TEMPLATE")
|
||||
@ApiParam("产品标签模板")
|
||||
private String prodLabelTemplate;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE")
|
||||
@ApiParam("包装标签模板")
|
||||
private String packLabelTemplate;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE2")
|
||||
@ApiParam("包装标签模板2")
|
||||
private String packLabelTemplate2;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE3")
|
||||
@ApiParam("包装标签模板3")
|
||||
private String packLabelTemplate3;
|
||||
|
||||
@Column(name = "PACK_LABEL_TEMPLATE4")
|
||||
@ApiParam("包装标签模板4")
|
||||
private String packLabelTemplate4;
|
||||
|
||||
@Column(name = "PROD_CFG_TYPE")
|
||||
@ApiParam("项目")
|
||||
private String prodCfgType;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :产品类流程配置表
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_ROUTE_CFG")
|
||||
@Api("产品类流程配置表")
|
||||
public class MesProdRouteCfg extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -3768632071281056796L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :产品流程配置操作参数表
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_ROUTE_OPT_PARAM")
|
||||
@Api("产品流程配置操作参数表")
|
||||
public class MesProdRouteOptParam extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -932364659894292000L;
|
||||
@Column(name = "PROD_ROUTE_CFG_ID")
|
||||
@ApiParam("产品流程ID")
|
||||
private Long prodRouteCfgId;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam("工步代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "STEP_SEQ")
|
||||
@ApiParam("工步顺序")
|
||||
private Integer stepSeq;
|
||||
|
||||
@Column(name = "PARAM_CODE")
|
||||
@ApiParam("工步参数代码")
|
||||
private String paramCode;
|
||||
|
||||
@Column(name = "PARAM_VALUE")
|
||||
@ApiParam("工步参数值")
|
||||
private String paramValue;
|
||||
|
||||
public long getProdRouteCfgIdVal() {
|
||||
return this.prodRouteCfgId == null ? 0l : this.prodRouteCfgId;
|
||||
}
|
||||
|
||||
public int getStepSeq() {
|
||||
return this.stepSeq == null ? 0 : this.stepSeq;
|
||||
}
|
||||
|
||||
public void setStepSeq(int stepSeq) {
|
||||
this.stepSeq = stepSeq;
|
||||
}
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @Description :散件产品配置明细
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/3/9 0009 - 17:52
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PROD_SCATTER_CFG_BOM")
|
||||
@Api("散件产品配置明细")
|
||||
public class MesProdScatterCfgBom extends BaseBean implements Serializable {
|
||||
|
||||
@Column(name = "SP_CFG_CODE")
|
||||
@ApiParam("散件配置编码")
|
||||
private String spCfgCode;
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品位置代码")
|
||||
private String produceCtgyCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("散件产品代码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("原材料物料号")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("用量")
|
||||
private BigDecimal qty;
|
||||
|
||||
@Column(name = "IS_KEY_PART")
|
||||
@ApiParam("是否关键件")
|
||||
private Integer isKeyPart;
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-26-10:25
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCE_CATEGORY")
|
||||
@Api("系统业务动作")
|
||||
public class MesProduceCategory extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 4593983703007675620L;
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCategoryCode;
|
||||
|
||||
@Column(name = "PRODUCE_CTGY_NAME")
|
||||
@ApiParam("产品类型名称")
|
||||
private String produceCategoryName;
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCE_CTGY_PICTURE")
|
||||
@Api("产品类型图片表")
|
||||
public class MesProduceCtgyPicture extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7223382567320219332L;
|
||||
@Column(name = "PRODUCE_CTGY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCtgyCode;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "FILE_ID")
|
||||
@ApiParam("文件id")
|
||||
private Long fileId;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件名称")
|
||||
private String fileName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("文件URL")
|
||||
private String fileUrl;
|
||||
|
||||
@ApiParam("图片URL")
|
||||
private String pictureUrl;
|
||||
}
|
@ -0,0 +1,205 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCE_SN", indexes = {
|
||||
@Index(columnList = "PRODUCT_SN"),
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
}, uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "SERIAL_NUMBER"})
|
||||
}
|
||||
)
|
||||
@Api("产品条码表")
|
||||
public class MesProduceSn extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6641051790330191326L;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER", nullable = false)
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PRODUCT_SN")
|
||||
@ApiParam("产品条码")
|
||||
private String productSn;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "QC_STATUS")
|
||||
@ApiParam("质量状态")
|
||||
private Integer qcStatus;
|
||||
|
||||
@Column(name = "SN_STATUS")
|
||||
@ApiParam("条码状态")
|
||||
private Integer snStatus;
|
||||
|
||||
@Column(name = "PRINT_COUNT")
|
||||
@ApiParam("打印次数")
|
||||
private Integer printCount;
|
||||
|
||||
@Column(name = "PRINT_STATUS")
|
||||
@ApiParam("打印状态")
|
||||
private Integer printStatus;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "NEXT_PROCESS_CODE")
|
||||
@ApiParam("下一工序代码")
|
||||
private String nextProcessCode;
|
||||
|
||||
@Column(name = "IN_WC_TIME")
|
||||
@ApiParam("进产线时间")
|
||||
private String inWorkCenterTime;
|
||||
|
||||
@Column(name = "OUT_WC_TIME")
|
||||
@ApiParam("出产线时间")
|
||||
private String outWorkCenterTime;
|
||||
|
||||
@Column(name = "SHIPPING_TIME")
|
||||
@ApiParam("发运时间")
|
||||
private String shippingTime;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("生产工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "CUST_SN")
|
||||
@ApiParam("客户条码")
|
||||
private String custSn;
|
||||
|
||||
@Column(name = "CUST_PART_NO")
|
||||
@ApiParam("客户零件号")
|
||||
private String custPartNo;
|
||||
|
||||
@Column(name = "CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Column(name = "SN_TYPE")
|
||||
@ApiParam("条码类型 10=正常 20=首检件")
|
||||
private Integer snType;
|
||||
|
||||
@Column(name = "TRAY_NO")
|
||||
@ApiParam("托盘号")
|
||||
private String trayNo;
|
||||
//
|
||||
// @Version
|
||||
// @Column(name = "LOCK_VERSION")
|
||||
// @ApiParam(value = "乐观锁", example = "1")
|
||||
// public transient Integer lockVersion;
|
||||
|
||||
@Transient
|
||||
@ApiParam("返回信息")
|
||||
private String resultMsg;
|
||||
|
||||
@Column(name = "OPERATE_TYPE")
|
||||
@ApiParam("操作类型")
|
||||
private Integer operateType;
|
||||
|
||||
@Transient
|
||||
@ApiParam("下线时间开始")
|
||||
private String outWorkCenterTimeStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam("下线时间截止")
|
||||
private String outWorkCenterTimeEnd;
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public int getQcStatusVal() {
|
||||
return this.qcStatus == null ? 0 : this.qcStatus;
|
||||
}
|
||||
|
||||
public int getSnStatusVal() {
|
||||
return this.snStatus == null ? 0 : this.snStatus;
|
||||
}
|
||||
|
||||
public int getPrintCountVal() {
|
||||
return this.printCount == null ? 0 : this.printCount;
|
||||
}
|
||||
|
||||
public int getPrintStatusVal() {
|
||||
return this.printStatus == null ? 0 : this.printStatus;
|
||||
}
|
||||
|
||||
public int getSnTypeVal() {
|
||||
return this.snType == null ? 0 : this.snType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MesProduceSn{" +
|
||||
"serialNumber='" + serialNumber + '\'' +
|
||||
", partNo='" + partNo + '\'' +
|
||||
", partNameRdd='" + partNameRdd + '\'' +
|
||||
", qty=" + qty +
|
||||
", qcStatus=" + qcStatus +
|
||||
", snStatus=" + snStatus +
|
||||
", printCount=" + printCount +
|
||||
", printStatus=" + printStatus +
|
||||
", workCenterCode='" + workCenterCode + '\'' +
|
||||
", workCellCode='" + workCellCode + '\'' +
|
||||
", routeCode='" + routeCode + '\'' +
|
||||
", processCode='" + processCode + '\'' +
|
||||
", nextProcessCode='" + nextProcessCode + '\'' +
|
||||
", inWorkCenterTime='" + inWorkCenterTime + '\'' +
|
||||
", outWorkCenterTime='" + outWorkCenterTime + '\'' +
|
||||
", shippingTime='" + shippingTime + '\'' +
|
||||
", workOrderNo='" + workOrderNo + '\'' +
|
||||
", custSn='" + custSn + '\'' +
|
||||
", custPartNo='" + custPartNo + '\'' +
|
||||
", snType=" + snType +
|
||||
", trayNo='" + trayNo + '\'' +
|
||||
", resultMsg='" + resultMsg + '\'' +
|
||||
", operateType=" + operateType +
|
||||
", outWorkCenterTimeStart='" + outWorkCenterTimeStart + '\'' +
|
||||
", outWorkCenterTimeEnd='" + outWorkCenterTimeEnd + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :生产数据
|
||||
* @Reference :
|
||||
* @Author : Wynne.Lu
|
||||
* @CreateDate : 2019-10-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCT_DATA", indexes = {
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "PRODUCT_SN"),
|
||||
@Index(columnList = "OBJECT_CODE"),
|
||||
@Index(columnList = "MODIFY_DATE_TIME")
|
||||
})
|
||||
@Api("生产数据")
|
||||
public class MesProductData extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2365404168777050771L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CENTER_NAME")
|
||||
@ApiParam("工作中心名称")
|
||||
private String workCenterName;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "WORK_CELL_NAME")
|
||||
@ApiParam("工作单元名称")
|
||||
private String workCellName;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PRODUCT_SN")
|
||||
@ApiParam("产品条码")
|
||||
private String productSn;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_DESC")
|
||||
@ApiParam("物料名称")
|
||||
private String partDesc;
|
||||
|
||||
@Column(name = "EQU_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equCode;
|
||||
|
||||
@Column(name = "EQU_NAME")
|
||||
@ApiParam("设备名称")
|
||||
private String equName;
|
||||
|
||||
@Column(name = "OBJECT_CODE")
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@Column(name = "OBJECT_NAME")
|
||||
@ApiParam("对象名称")
|
||||
private String objectName;
|
||||
|
||||
@Column(name = "FIELD_CODE")
|
||||
@ApiParam("字段代码")
|
||||
private String fieldCode;
|
||||
|
||||
@Column(name = "FIELD_NAME")
|
||||
@ApiParam("字段名称")
|
||||
private String fieldName;
|
||||
|
||||
@Column(name = "FIELD_VALUE")
|
||||
@ApiParam("字段值")
|
||||
private String fieldValue;
|
||||
|
||||
@Column(name = "ROW_NO")
|
||||
@ApiParam("数据行号")
|
||||
private String rowNo;
|
||||
|
||||
@Column(name = "GROUP_NO")
|
||||
@ApiParam("数据组号")
|
||||
private String groupNo;
|
||||
|
||||
@Lob
|
||||
@Column(name = "LINE_DATA")
|
||||
@ApiParam("生产数据")
|
||||
private String lineData;
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: wangjie
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_PRODUCT_ENCODE_CFG")
|
||||
@Api("产品编码配置表")
|
||||
public class MesProductEncodeCfg extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 6641051790330191326L;
|
||||
|
||||
@Column(name = "CODE_TYPE")
|
||||
@ApiParam("编码类型")
|
||||
private Integer codeType;
|
||||
|
||||
@Column(name = "MATCH_TYPE")
|
||||
@ApiParam("匹配类型")
|
||||
private Integer matchType;
|
||||
|
||||
@Column(name = "MATCH_VALUE")
|
||||
@ApiParam("匹配值")
|
||||
private String matchValue;
|
||||
|
||||
@Column(name = "RULE_CODE")
|
||||
@ApiParam("编码规则代码")
|
||||
private String ruleCode;
|
||||
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\12 16:33
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_CHECK_DATA", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME"),
|
||||
@Index(columnList = "SN")
|
||||
})
|
||||
@Api("质量过程检测数据")
|
||||
public class MesQcCheckData extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3600528549583720850L;
|
||||
@Column(name = "CHECK_ID")
|
||||
@ApiParam("检测id")
|
||||
private String checkId;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料编码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检测类型")
|
||||
private Integer checkType;
|
||||
|
||||
@Column(name = "CHECK_ITEM")
|
||||
@ApiParam("检测项")
|
||||
private String checkItem;
|
||||
|
||||
@Column(name = "CHECK_STANDARD")
|
||||
@ApiParam("检测标准")
|
||||
private String checkStandard;
|
||||
|
||||
@Column(name = "CHECK_GUIDE")
|
||||
@ApiParam("检测指导")
|
||||
private String checkGuide;
|
||||
|
||||
@Column(name = "CHECK_FREQUENCY")
|
||||
@ApiParam("频率")
|
||||
private String checkFrequency;
|
||||
|
||||
@Column(name = "CHECK_VALUE")
|
||||
@ApiParam("检测值")
|
||||
private String checkValue;
|
||||
|
||||
@Column(name = "CHECK_RESULT")
|
||||
@ApiParam("判定结果")
|
||||
private String checkResult;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("产品条码")
|
||||
private String sn;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("产品数量")
|
||||
private Integer qty;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Column(name = "ORDER_NO")
|
||||
@ApiParam("工单号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "CUST_CODE")
|
||||
@ApiParam("客户代码")
|
||||
private String custCode;
|
||||
|
||||
@Transient
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Transient
|
||||
@ApiParam("过程质量检测数据")
|
||||
private List<MesQcCheckStandard> mesQcCheckStandardList;
|
||||
|
||||
}
|
@ -0,0 +1,108 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\12 14:46
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QC_CHECK_STANDARD")
|
||||
@Api("质量检测标准")
|
||||
public class MesQcCheckStandard extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1590320231495124712L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料编码")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检测类型")
|
||||
private Integer checkType;
|
||||
|
||||
@Column(name = "CHECK_ITEM")
|
||||
@ApiParam("检测项")
|
||||
private String checkItem;
|
||||
|
||||
@Column(name = "CHECK_STANDARD")
|
||||
@ApiParam("检测标准")
|
||||
private String checkStandard;
|
||||
|
||||
@Column(name = "CHECK_GUIDE")
|
||||
@ApiParam("检测指导")
|
||||
private String checkGuide;
|
||||
|
||||
@Column(name = "CHECK_FREQUENCY")
|
||||
@ApiParam("频率")
|
||||
private String checkFrequency;
|
||||
|
||||
@Transient
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Transient
|
||||
@ApiParam("检测结果")
|
||||
private String checkResult;
|
||||
|
||||
@Transient
|
||||
@ApiParam("检测值")
|
||||
private String checkValue;
|
||||
|
||||
@Column(name = "CHECK_ITEM_TYPE")
|
||||
@ApiParam("检测项类型")
|
||||
private String checkItemType;
|
||||
|
||||
@Transient
|
||||
@ApiParam("检测项类型名称")
|
||||
private String checkItemTypeName;
|
||||
|
||||
@Transient
|
||||
private List<MesQcCheckStandard> childQcList;
|
||||
|
||||
public MesQcCheckStandard() {
|
||||
}
|
||||
|
||||
public MesQcCheckStandard(Long id, String partNo, String workCenterCode, String workCellCode, Integer checkType, String checkItem, String checkStandard
|
||||
, String checkGuide, String checkFrequency, String partName, String checkItemType, String checkItemTypeName) {
|
||||
this.id = id;
|
||||
this.partNo = partNo;
|
||||
this.workCenterCode = workCenterCode;
|
||||
this.workCellCode = workCellCode;
|
||||
this.checkType = checkType;
|
||||
this.checkItem = checkItem;
|
||||
this.checkStandard = checkStandard;
|
||||
this.checkGuide = checkGuide;
|
||||
this.checkFrequency = checkFrequency;
|
||||
this.partName = partName;
|
||||
this.checkItemType = checkItemType;
|
||||
this.checkItemTypeName = checkItemTypeName;
|
||||
}
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :JIS发运队列
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-12-24
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QUEUE_JIS")
|
||||
@Api("JIS发运队列")
|
||||
public class MesQueueJis extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 8028683333028906395L;
|
||||
@Column(name = "JIS_NO")
|
||||
@ApiParam("主队列编号")
|
||||
private String jisNo;
|
||||
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "VIN_CODE")
|
||||
@ApiParam("vin")
|
||||
private String vinCode;
|
||||
|
||||
@Column(name = "CAR_NO")
|
||||
@ApiParam("车号")
|
||||
private String carNo;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("排序")
|
||||
private Double seq;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Transient
|
||||
@ApiParam("颜色")
|
||||
private String color;
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :JIS发运队列明细
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2019-12-24
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QUEUE_JIS_DETAIL")
|
||||
@Api("JIS发运队列明细")
|
||||
public class MesQueueJisDetail extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 829273008952400763L;
|
||||
@Column(name = "JIS_NO")
|
||||
@ApiParam("主队列编号")
|
||||
private String jisNo;
|
||||
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "FINAL_STATUS")
|
||||
@ApiParam("明细整体状态")
|
||||
private Integer finalStatus;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QUEUE_ORDER", indexes = {
|
||||
@Index(columnList = "CUST_FLAG_NO")
|
||||
}, uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "ORDER_NO"})
|
||||
}
|
||||
)
|
||||
@Api("生产队列主表")
|
||||
public class MesQueueOrder extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 6538031118299400711L;
|
||||
@Column(name = "ORDER_NO", nullable = false)
|
||||
@ApiParam("主队列编号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "VIN_CODE")
|
||||
@ApiParam("Vin")
|
||||
private String vinCode;
|
||||
|
||||
@Column(name = "CUST_FLAG_NO")
|
||||
@ApiParam("客户标识号")
|
||||
private String custFlagNo;
|
||||
|
||||
@Column(name = "PROD_CFG_CODE")
|
||||
@ApiParam("产品配置代码")
|
||||
private String prodCfgCode;
|
||||
|
||||
@Column(name = "PROD_CFG_NAME_RDD")
|
||||
@ApiParam("产品配置名称")
|
||||
private String prodCfgNameRdd;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("排序")
|
||||
private Double seq;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("生产工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "CUST_PROD_LINE_CODE")
|
||||
@ApiParam("客户产线代码")
|
||||
private String custProdLineCode;
|
||||
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Transient
|
||||
@ApiParam("起始车号")
|
||||
private String custFlagNoStart;
|
||||
|
||||
@Transient
|
||||
@ApiParam("截至车号")
|
||||
private String custFlagNoEnd;
|
||||
|
||||
public int getStatusVal() {
|
||||
return this.status == null ? 0 : this.status;
|
||||
}
|
||||
|
||||
public double getSeqVal() {
|
||||
return this.seq == null ? 0.0d : this.seq;
|
||||
}
|
||||
}
|
@ -0,0 +1,103 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: Crish
|
||||
* @CreateDate:2019-04-16-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_QUEUE_ORDER_DETAIL", indexes = {
|
||||
@Index(columnList = "ORDER_NO")
|
||||
}, uniqueConstraints = {
|
||||
@UniqueConstraint(columnNames = {"ORGANIZE_CODE", "ORDER_NO", "PART_NO"})
|
||||
}
|
||||
)
|
||||
@Api("生产队列明细")
|
||||
public class MesQueueOrderDetail extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1548933241804083457L;
|
||||
@Column(name = "ORDER_NO", nullable = false)
|
||||
@ApiParam("主队列编号")
|
||||
private String orderNo;
|
||||
|
||||
@Column(name = "PART_NO", nullable = false)
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME_RDD")
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("队列明细序号")
|
||||
private Double seq;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "WORK_TYPE")
|
||||
@ApiParam("生产类型")
|
||||
private String workType;
|
||||
|
||||
@Column(name = "PRODUCE_CATEGORY_CODE")
|
||||
@ApiParam("产品类型代码")
|
||||
private String produceCategoryCode;
|
||||
|
||||
@Column(name = "PRODUCE_CATEGORY_NAME_RDD")
|
||||
@ApiParam("产品类型名称")
|
||||
private String produceCategoryNameRdd;
|
||||
|
||||
@Transient
|
||||
@ApiParam("队列序号")
|
||||
private Double queueSeq;
|
||||
|
||||
public double getQueueSeqVal() {
|
||||
return this.queueSeq == null ? 0.0d : this.queueSeq;
|
||||
}
|
||||
|
||||
public double getSeqVal() {
|
||||
return this.seq == null ? 0.0d : this.seq;
|
||||
}
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public int getStatusVal() {
|
||||
return this.status == null ? 0 : this.status;
|
||||
}
|
||||
|
||||
public MesQueueOrderDetail() {
|
||||
}
|
||||
|
||||
public MesQueueOrderDetail(Double queueSeq, Double seq, String serialNumber) {
|
||||
this.queueSeq = queueSeq;
|
||||
this.seq = seq;
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
}
|
@ -0,0 +1,78 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_RAW_PART_SN", indexes = {@Index(columnList = "RAW_SN")})
|
||||
@Api("原材料信息")
|
||||
public class MesRawPartSn extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 5504323561257182116L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "RAW_TYPE")
|
||||
@ApiParam("原料类型")
|
||||
private String rawType;
|
||||
|
||||
@Column(name = "RAW_SN")
|
||||
@ApiParam("原材料条码")
|
||||
private String rawSn;
|
||||
|
||||
@Column(name = "RAW_QTY")
|
||||
@ApiParam("数量")
|
||||
private Double rawQty;
|
||||
|
||||
@Column(name = "LOT_NO")
|
||||
@ApiParam("生产批次")
|
||||
private String lotNo;
|
||||
|
||||
@Column(name = "FIX_LOT_NO")
|
||||
@ApiParam("特殊批次")
|
||||
private String fixLotNo;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("原料状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "SUPPLIER_CODE")
|
||||
@ApiParam("供应商代码")
|
||||
private String supplierCode;
|
||||
|
||||
public double getRawQtyVal() {
|
||||
return this.rawQty == null ? 0l : this.rawQty;
|
||||
}
|
||||
|
||||
public int getStatusVal() {
|
||||
return this.status == null ? 0 : this.status;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :维修
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-08
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_REPAIR")
|
||||
@Api("维修")
|
||||
public class MesRepair extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -7520365696308295804L;
|
||||
@Column(name = "REPAIR_CODE")
|
||||
@ApiParam("维修代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "REPAIR_NAME")
|
||||
@ApiParam("维修名称")
|
||||
private String repairName;
|
||||
|
||||
@Column(name = "REPAIR_TYPE")
|
||||
@ApiParam("维修类型")
|
||||
private Integer repairType;
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:33
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_REPAIR_RECORD", indexes = {
|
||||
@Index(columnList = "SERIAL_NUMBER"),
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("维修信息记录表")
|
||||
public class MesRepairRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -2453726410779076150L;
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "DEFECT_NAME")
|
||||
@ApiParam("缺陷名称")
|
||||
private String defectName;
|
||||
|
||||
@Column(name = "SIDE_LOCATION")
|
||||
@ApiParam("产品面位")
|
||||
private String sideLocation;
|
||||
|
||||
@Column(name = "DEFECT_LOCATION")
|
||||
@ApiParam("缺陷位置")
|
||||
private String defectLocation;
|
||||
|
||||
@Column(name = "REPAIR_CODE")
|
||||
@ApiParam("维修代码")
|
||||
private String repairCode;
|
||||
|
||||
@Column(name = "REPAIR_NAME")
|
||||
@ApiParam("维修名称")
|
||||
private String repairName;
|
||||
|
||||
@Column(name = "DC_CODE")
|
||||
@ApiParam("缺陷原因代码")
|
||||
private String dcCode;
|
||||
|
||||
@Column(name = "DC_NAME")
|
||||
@ApiParam("缺陷原因描述")
|
||||
private String dcName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
|
||||
@Transient
|
||||
@ApiParam("备注")
|
||||
private String spareMemo;
|
||||
|
||||
@Transient
|
||||
@ApiParam("不良记录id")
|
||||
private Long defectRecordId;
|
||||
|
||||
@Transient
|
||||
@ApiParam("缺陷集合")
|
||||
private List<MesDefect> mesDefectList;
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Lob;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :流程表
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ROUTE")
|
||||
@Api("流程表")
|
||||
public class MesRoute extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -7622507229961050740L;
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "ROUTE_NAME")
|
||||
@ApiParam("流程名称")
|
||||
private String routeName;
|
||||
|
||||
@Column(name = "ROUTE_TYPE")
|
||||
@ApiParam("流程类型 10-扫描类型 20-监控类型")
|
||||
private Integer routeType;
|
||||
|
||||
@Lob
|
||||
@Column(name = "POSITION")
|
||||
@ApiParam("GOJS位置")
|
||||
private String position;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :流程工序关系
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ROUTE_PROCESS")
|
||||
@Api("流程工序关系")
|
||||
public class MesRouteProcess extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 3477334942090180010L;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "NEXT_PROCESS")
|
||||
@ApiParam("下一工序")
|
||||
private String nextProcess;
|
||||
|
||||
@Column(name = "REPAIR_PROCESS")
|
||||
@ApiParam("维修工序")
|
||||
private String repairProcess;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("顺序")
|
||||
private Integer seq;
|
||||
|
||||
@Column(name = "IS_NECESSARY")
|
||||
@ApiParam("是否必须")
|
||||
private Integer isNecessary;
|
||||
|
||||
public int getSeqVal() {
|
||||
return this.seq == null ? 0 : this.seq;
|
||||
}
|
||||
|
||||
public int getIsNecessaryVal() {
|
||||
return this.isNecessary == null ? 0 : this.isNecessary;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :工序工作单元
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_ROUTE_PROCESS_CELL")
|
||||
@Api("工序工作单元对照")
|
||||
public class MesRouteProcessCell extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -703779336699805482L;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :报废原因
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-08-08
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SCRAP")
|
||||
@Api("报废原因")
|
||||
public class MesScrap extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -6202113707752178624L;
|
||||
@Column(name = "SCRAP_CODE")
|
||||
@ApiParam("报废代码")
|
||||
private String scrapCode;
|
||||
|
||||
@Column(name = "SCRAP_NAME")
|
||||
@ApiParam("报废名称")
|
||||
private String scrapName;
|
||||
|
||||
@Column(name = "SCRAP_TYPE")
|
||||
@ApiParam("报废类型")
|
||||
private String scrapType;
|
||||
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\10\16 14:42
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SCRAP_RECORD", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("报废信息记录表")
|
||||
public class MesScrapRecord extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -8519832449647086195L;
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "DEFECT_CODE")
|
||||
@ApiParam("缺陷代码")
|
||||
private String defectCode;
|
||||
|
||||
@Column(name = "SCRAP_CODE")
|
||||
@ApiParam("报废代码")
|
||||
private String scrapCode;
|
||||
|
||||
@Column(name = "SCRAP_NAME")
|
||||
@ApiParam("报废名称")
|
||||
private String scrapName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("生产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "MEMO")
|
||||
@ApiParam("备注")
|
||||
private String memo;
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-04-19
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SHIFT")
|
||||
@Api("班次信息")
|
||||
public class MesShift extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -1174268061355263705L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "SHIFT_CODE")
|
||||
@ApiParam("班次代码")
|
||||
private String shiftCode;
|
||||
|
||||
@Column(name = "SHIFT_NAME")
|
||||
@ApiParam("班次名称")
|
||||
private String shiftName;
|
||||
|
||||
@Column(name = "START_TIME")
|
||||
@ApiParam("开班时间")
|
||||
private String startTime;
|
||||
|
||||
@Column(name = "END_TIME")
|
||||
@ApiParam("下班时间")
|
||||
private String endTime;
|
||||
|
||||
@Column(name = "WORK_TIMES")
|
||||
@ApiParam("作业时长")
|
||||
private Double workTimes;
|
||||
|
||||
@Column(name = "SHIFT_SEQ")
|
||||
@ApiParam("班次顺序")
|
||||
private Integer shiftSeq;
|
||||
|
||||
public int getShiftSeqVal() {
|
||||
return this.shiftSeq == null ? 0 : this.shiftSeq;
|
||||
}
|
||||
|
||||
public double getWorkTimesVal() {
|
||||
return this.workTimes == null ? 0.0d : this.workTimes;
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: wangjie
|
||||
* @CreateDate:2019-09-18-17:36
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SHIFT_GROUP")
|
||||
@Api("班组")
|
||||
public class MesShiftGroup extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8962836866086379111L;
|
||||
@Column(name = "GROUP_CODE")
|
||||
@ApiParam("班组代码")
|
||||
private String groupCode;
|
||||
|
||||
@Column(name = "GROUP_NAME")
|
||||
@ApiParam("班组名称")
|
||||
private String groupName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "SQUAD_LEADER")
|
||||
@ApiParam("班长")
|
||||
private String squadLeader;
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :mes系统业务动作
|
||||
* @Reference :
|
||||
* @Author : yiming.gu
|
||||
* @CreateDate : 2019-05-20
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SHIFT_REST")
|
||||
@Api("班次休息信息")
|
||||
public class MesShiftRest extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -8712815093203320523L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "SHIFT_CODE")
|
||||
@ApiParam("班次代码")
|
||||
private String shiftCode;
|
||||
|
||||
@Column(name = "START_TIME")
|
||||
@ApiParam("开始时间")
|
||||
private String startTime;
|
||||
|
||||
@Column(name = "REST_TIMES")
|
||||
@ApiParam("休息时长")
|
||||
private Double restTimes;
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : zcg
|
||||
* @Date : 2020/3/18 0018 - 9:07
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_SN_PHOTO_RELATION")
|
||||
@Api("条码照片关系")
|
||||
public class MesSnPhotoRelation extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -7732648131003455681L;
|
||||
|
||||
@Column(name = "SERIAL_NUMBER")
|
||||
@ApiParam("条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "PHOTO_PATH")
|
||||
@ApiParam("照片路径")
|
||||
private String photoPath;
|
||||
|
||||
@Column(name = "PHOTO_NAME")
|
||||
@ApiParam("照片名称")
|
||||
private String photoName;
|
||||
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
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;
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :工序物料清单
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_STATION_BOM")
|
||||
@Api("工序物料清单")
|
||||
public class MesStationBom extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -4693067673094931011L;
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("零件号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "PART_NAME")
|
||||
@ApiParam("产品物料名称")
|
||||
private String partName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "ITEM_PART_NO")
|
||||
@ApiParam("子零件")
|
||||
private String itemPartNo;
|
||||
|
||||
@Column(name = "ITEM_PART_NAME")
|
||||
@ApiParam("原材料物料名称")
|
||||
private String itemPartName;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "子零件数量", example = "0")
|
||||
private Double qty;
|
||||
|
||||
@Column(name = "IS_REPEAT")
|
||||
@ApiParam(value = "是否可重复")
|
||||
private Integer isRepeat;
|
||||
|
||||
@Column(name = "IS_CHECK")
|
||||
@ApiParam(value = "是否检查")
|
||||
private Integer isCheck;
|
||||
|
||||
@Column(name = "IS_FEED")
|
||||
@ApiParam(value = "是否投料配置")
|
||||
private Integer isFeed;
|
||||
|
||||
@Column(name = "IS_BIND_KEY")
|
||||
@ApiParam(value = "是否绑定关键件")
|
||||
private Integer isBindKey;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "绑定数量")
|
||||
private Double boundQty;
|
||||
|
||||
@Transient
|
||||
@ApiParam("是否已绑定")
|
||||
private Boolean isBind;
|
||||
|
||||
@Transient
|
||||
@ApiParam("显示颜色")
|
||||
private String color;
|
||||
|
||||
@Transient
|
||||
@ApiParam("关键件代码")
|
||||
private String keyBarCode;
|
||||
|
||||
@Transient
|
||||
@ApiParam("产品条码")
|
||||
private String serialNumber;
|
||||
|
||||
public double getBoundQtyVal() {
|
||||
return this.boundQty == null ? 0.0d : this.boundQty;
|
||||
}
|
||||
|
||||
public double getQtyVal() {
|
||||
return this.qty == null ? 0.0d : this.qty;
|
||||
}
|
||||
|
||||
public int getIsRepeatVal() {
|
||||
return this.isRepeat == null ? 0 : this.isRepeat;
|
||||
}
|
||||
|
||||
public int getIsCheckVal() {
|
||||
return this.isCheck == null ? 0 : this.isCheck;
|
||||
}
|
||||
|
||||
public boolean getIsBindVal() {
|
||||
return this.isBind == null ? false : this.isBind;
|
||||
}
|
||||
|
||||
public int getIsFeedVal() {
|
||||
return this.isFeed == null ? 0 : this.isFeed;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MesStationBom{" +
|
||||
"partNo='" + partNo + '\'' +
|
||||
", itemPartNo='" + itemPartNo + '\'' +
|
||||
", qty=" + qty +
|
||||
", isRepeat=" + isRepeat +
|
||||
", isCheck=" + isCheck +
|
||||
", isFeed=" + isFeed +
|
||||
", isBind=" + isBind +
|
||||
", color='" + color + '\'' +
|
||||
", id=" + id +
|
||||
", organizeCode='" + organizeCode + '\'' +
|
||||
", isValid=" + isValid +
|
||||
", isDeleted=" + isDeleted +
|
||||
", createUser='" + createUser + '\'' +
|
||||
", createDatetime='" + createDatetime + '\'' +
|
||||
", modifyUser='" + modifyUser + '\'' +
|
||||
", modifyDatetime='" + modifyDatetime + '\'' +
|
||||
", createDateTimeStart='" + createDateTimeStart + '\'' +
|
||||
", createDateTimeEnd='" + createDateTimeEnd + '\'' +
|
||||
", modifyDateTimeStart='" + modifyDateTimeStart + '\'' +
|
||||
", modifyDateTimeEnd='" + modifyDateTimeEnd + '\'' +
|
||||
", orderByParam='" + orderByParam + '\'' +
|
||||
", ascOrDesc=" + ascOrDesc +
|
||||
'}';
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :工步
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_STEP")
|
||||
@Api("工步")
|
||||
public class MesStep extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2157306767211269786L;
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam("工步代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "STEP_NAME")
|
||||
@ApiParam("工步名称")
|
||||
private String stepName;
|
||||
|
||||
@Column(name = "STEP_TEXT")
|
||||
@ApiParam("工步描述")
|
||||
private String stepText;
|
||||
|
||||
@Column(name = "STEP_TYPE")
|
||||
@ApiParam("工步类型")
|
||||
private String stepType;
|
||||
|
||||
@Column(name = "STEP_OBJECT")
|
||||
@ApiParam("工步对象")
|
||||
private String stepObject;
|
||||
|
||||
/**
|
||||
* 工位扫描业务所需使用字段
|
||||
*/
|
||||
@Transient
|
||||
@ApiParam("流程代码")
|
||||
private String routeCode;
|
||||
|
||||
/**
|
||||
* 工位扫描业务所需使用字段
|
||||
*/
|
||||
@Transient
|
||||
@ApiParam("工序代码")
|
||||
private String processCode;
|
||||
|
||||
/**
|
||||
* 工位扫描业务所需使用字段
|
||||
*/
|
||||
@Transient
|
||||
@ApiParam("工步顺序")
|
||||
private Integer stepSeq;
|
||||
|
||||
/**
|
||||
* 工位扫描业务所需使用字段
|
||||
*/
|
||||
@Transient
|
||||
@ApiParam("工步执行完毕")
|
||||
private boolean isComplete;
|
||||
|
||||
/**
|
||||
* 工位扫描业务所需使用字段
|
||||
*/
|
||||
@Transient
|
||||
@ApiParam("工步是否跳过")
|
||||
private boolean isJump;
|
||||
|
||||
public MesStep() {
|
||||
}
|
||||
|
||||
public MesStep(String stepCode, String stepName, String stepText, String stepType, String stepObject,
|
||||
String routeCode, String processCode, Integer stepSeq) {
|
||||
this.stepCode = stepCode;
|
||||
this.stepName = stepName;
|
||||
this.stepText = stepText;
|
||||
this.stepType = stepType;
|
||||
this.stepObject = stepObject;
|
||||
this.routeCode = routeCode;
|
||||
this.processCode = processCode;
|
||||
this.stepSeq = stepSeq;
|
||||
}
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :工步参数
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_STEP_PARAM")
|
||||
@Api("工步参数")
|
||||
public class MesStepParam extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -147541368320233093L;
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam("工步代码")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "PARAM_CODE")
|
||||
@ApiParam("参数代码")
|
||||
private String paramCode;
|
||||
|
||||
@Column(name = "PARAM_NAME")
|
||||
@ApiParam("参数名称")
|
||||
private String paramName;
|
||||
|
||||
@Column(name = "PARAM_ATTRIBUTE")
|
||||
@ApiParam("参数属性")
|
||||
private String paramAttribute;
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_TIME")
|
||||
@Api("工步参数")
|
||||
public class MesTime extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 1562011791394529076L;
|
||||
|
||||
@Column(name = "MODULE")
|
||||
@ApiParam("组件")
|
||||
private String module;
|
||||
|
||||
@Column(name = "ELAPSE")
|
||||
@ApiParam("耗时")
|
||||
private Long elapse;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :扭矩信息记录表
|
||||
* @Reference :
|
||||
* @Author : Crish
|
||||
* @CreateDate : 2019-05-17
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_TORQUE_DETAIL")
|
||||
@Api("扭矩信息记录表")
|
||||
public class MesTorqueDetail extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 2900363253333046861L;
|
||||
|
||||
@Column(name = "SN")
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@Column(name = "UPPER_LIMIT")
|
||||
@ApiParam("最大值")
|
||||
private Double upperLimit;
|
||||
|
||||
@Column(name = "LOWER_LIMIT")
|
||||
@ApiParam("最小值")
|
||||
private Double lowerLimit;
|
||||
|
||||
@Column(name = "TORQUE_DETAIL_VALUE")
|
||||
@ApiParam("扭矩值")
|
||||
private Double torqueValue;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name = "ok")
|
||||
@ApiParam("扭矩是否合格")
|
||||
private String ok;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "p_set")
|
||||
@ApiParam("螺丝枪PSET设置值")
|
||||
private String deviceSetValue;
|
||||
|
||||
@Column(name = "MAXANGLE")
|
||||
@ApiParam("最大扭矩")
|
||||
private String maxAngle;
|
||||
|
||||
@Column(name = "MINANGLE")
|
||||
@ApiParam("最小扭矩")
|
||||
private String minAngel;
|
||||
|
||||
@Column(name = "FINALANGLE")
|
||||
@ApiParam("最终扭矩")
|
||||
private Integer finalAngle;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("工单号")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "KEY_DATA_CODE")
|
||||
@ApiParam("关键数据代码")
|
||||
private String keyDataCode;
|
||||
|
||||
@Column(name = "RESULT_MSG")
|
||||
@ApiParam("扭矩判定结果")
|
||||
private String resultMsg;
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\22 16:56
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_TYPE_CFG")
|
||||
@Api("类型信息表")
|
||||
public class MesTypeCfg extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -1699612238800419597L;
|
||||
|
||||
@Column(name = "TYPE_CODE")
|
||||
@ApiParam("类型代码")
|
||||
private String typeCode;
|
||||
|
||||
@Column(name = "TYPE_NAME")
|
||||
@ApiParam("类型名称")
|
||||
private String typeName;
|
||||
|
||||
@Column(name = "BUSINESS_TYPE_CODE")
|
||||
@ApiParam("业务类型代码")
|
||||
private String businessTypeCode;
|
||||
|
||||
@Column(name = "BUSINESS_TYPE_NAME")
|
||||
@ApiParam("业务类型名称")
|
||||
private String businessTypeName;
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/9/21 1:45 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WC_CHECK")
|
||||
@Api("开线检查")
|
||||
public class MesWcCheck extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 8057329890155185557L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检查类型")
|
||||
private String checkType;
|
||||
|
||||
@Column(name = "CHECK_OBJ")
|
||||
@ApiParam("检查对象")
|
||||
private String checkObj;
|
||||
|
||||
@Column(name = "CHECK_ITEM")
|
||||
@ApiParam("检查项")
|
||||
private String checkItem;
|
||||
|
||||
@Column(name = "STANDARD")
|
||||
@ApiParam("检查标准")
|
||||
private String standard;
|
||||
|
||||
}
|
@ -0,0 +1,83 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.Index;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/9/21 1:57 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WC_CHECK_RECORD", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("开线检查记录")
|
||||
public class MesWcCheckRecord extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -2173902677953303765L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_ORDER")
|
||||
@ApiParam("工单号")
|
||||
private String workOrder;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("产品物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "CHECK_TYPE")
|
||||
@ApiParam("检查类型")
|
||||
private String checkType;
|
||||
|
||||
@Column(name = "CHECK_OBJ")
|
||||
@ApiParam("检查对象")
|
||||
private String checkObj;
|
||||
|
||||
@Column(name = "CHECK_ITEM")
|
||||
@ApiParam("检查项")
|
||||
private String checkItem;
|
||||
|
||||
@Column(name = "STANDARD")
|
||||
@ApiParam("检查标准")
|
||||
private String standard;
|
||||
|
||||
@Column(name = "CHECK_RESULT")
|
||||
@ApiParam("检查结果")
|
||||
private String checkResult;
|
||||
|
||||
@Column(name = "CHECK_VALUE")
|
||||
@ApiParam("检查值")
|
||||
private String checkValue;
|
||||
|
||||
@Column(name = "REASON")
|
||||
@ApiParam("原因")
|
||||
private String reason;
|
||||
|
||||
@Column(name = "GROUP_CODE")
|
||||
@ApiParam("组名")
|
||||
private String groupCode;
|
||||
|
||||
@Column(name = "OVERALL_RESULT")
|
||||
@ApiParam("总体结果")
|
||||
private Integer overAllResult;
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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/9/24 2:31 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WC_EQUIPMENT")
|
||||
@Api("工作单元设备关系表")
|
||||
public class MesWcEquipment extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 2088600237918553286L;
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "EQUIPMENT_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :工作单元
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WORK_CELL")
|
||||
@Api("工作单元")
|
||||
public class MesWorkCell extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -493313481197504121L;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "WORK_CELL_NAME")
|
||||
@ApiParam("工作单元名称")
|
||||
private String workCellName;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "AREA_CODE")
|
||||
@ApiParam("生产区域代码")
|
||||
private String areaCode;
|
||||
|
||||
@Column(name = "WORK_CELL_TYPE")
|
||||
@ApiParam("工位类型")
|
||||
private Integer workCellType;
|
||||
|
||||
@Column(name = "SEQ")
|
||||
@ApiParam("序号")
|
||||
private Integer seq;
|
||||
|
||||
@Column(name = "WORK_CELL_IP")
|
||||
@ApiParam("工作单元IP")
|
||||
private String workCellIp;
|
||||
|
||||
@Column(name = "WORK_CELL_PORT")
|
||||
@ApiParam("工作单元端口")
|
||||
private String workCellPort;
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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.*;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: Wynne.Lu
|
||||
* @CreateDate: 2019/10/16 2:42 PM
|
||||
* @Description:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WORK_CELL_MONITOR_LOG", indexes = {
|
||||
@Index(columnList = "CREATE_DATE_TIME")
|
||||
})
|
||||
@Api("工位监控异常信息")
|
||||
public class MesWorkCellMonitorLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -5634446206963213556L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工作单元")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_ORDER_NO")
|
||||
@ApiParam("工单")
|
||||
private String workOrderNo;
|
||||
|
||||
@Column(name = "STEP_CODE")
|
||||
@ApiParam("工步")
|
||||
private String stepCode;
|
||||
|
||||
@Column(name = "PROCESS_CODE")
|
||||
@ApiParam("工序")
|
||||
private String processCode;
|
||||
|
||||
@Column(name = "ROUTE_CODE")
|
||||
@ApiParam("流程")
|
||||
private String routeCOde;
|
||||
|
||||
@Lob
|
||||
@Column(name = "MESSAGE")
|
||||
@ApiParam("异常信息")
|
||||
private String message;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue