Wms V3新增实体创建
parent
0d63c10182
commit
91442ec8ff
@ -0,0 +1,90 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
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.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import javax.persistence.Transient;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 15:03
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_BOM")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="物料清单",description = "物料清单")
|
||||||
|
public class WmsBom extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam(value = "父物料号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
@Column(name = "PART_NAME")
|
||||||
|
@ApiParam(value = "父物料描述")
|
||||||
|
private String partName;
|
||||||
|
|
||||||
|
@Column(name = "UNIT")
|
||||||
|
@ApiParam(value = "计量单位")
|
||||||
|
private String unit;
|
||||||
|
|
||||||
|
@Column(name = "QTY")
|
||||||
|
@ApiParam(value = "数量")
|
||||||
|
private Double qty;
|
||||||
|
|
||||||
|
@Column(name = "ITEM_PART_NO")
|
||||||
|
@ApiParam(value = "子物料号")
|
||||||
|
private String itemPartNo;
|
||||||
|
|
||||||
|
@Column(name = "ITEM_PART_NAM")
|
||||||
|
@ApiParam(value = "子料物料描述")
|
||||||
|
private String itemPartNam;
|
||||||
|
|
||||||
|
@Column(name = "ITEM_UNIT")
|
||||||
|
@ApiParam(value = "子计量单位")
|
||||||
|
private String itemUnit;
|
||||||
|
|
||||||
|
@Column(name = "ITEM_QTY")
|
||||||
|
@ApiParam(value = "子用量")
|
||||||
|
private Double itemQty;
|
||||||
|
|
||||||
|
@Column(name = "BOM_VERSION")
|
||||||
|
@ApiParam(value = "BOM版本号")
|
||||||
|
private String bomVersion;
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@ApiParam(value="有效起始日期",example = "2018-12-31 23:59:59")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
@Column(name = "EFF_START_TIME")
|
||||||
|
private String effStartTime;
|
||||||
|
|
||||||
|
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@ApiParam(value="有效截止日期",example = "2018-12-31 23:59:59")
|
||||||
|
@AnnoOutputColumn(hidden = true)
|
||||||
|
@Column(name = "EFF_END_TIME")
|
||||||
|
private String effEndTime;
|
||||||
|
|
||||||
|
public Double getQty() {
|
||||||
|
return this.qty == null ? 0 : this.qty.doubleValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public Double getItemQty() {
|
||||||
|
return this.itemQty == null ? 0 : this.itemQty.doubleValue();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 客户零件关系表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 14:50
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_CUSTOMER_PART")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="客户零件关系表",description = "客户零件关系表")
|
||||||
|
public class WmsCustomerPart extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "CUSTOMER_CODE")
|
||||||
|
@ApiParam(value = "客户代码")
|
||||||
|
private String customerCode;
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam(value = "物料号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
@Column(name = "CUSTOMER_PART_NO")
|
||||||
|
@ApiParam(value = "客户零件号")
|
||||||
|
private String customerPartNo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 产品项目表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 13:41
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_PROD_CFG_TYPE")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="产品项目",description = "产品项目")
|
||||||
|
public class WmsProdCfgType extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "PROD_CFG_TYPE_CODE")
|
||||||
|
@ApiParam(value = "项目代码")
|
||||||
|
private String prodCfgTypeCode;
|
||||||
|
|
||||||
|
@Column(name = "PROD_CFG_TYPE_NAME")
|
||||||
|
@ApiParam(value = "项目名称")
|
||||||
|
private String prodCfgTypeName;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 13:54
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_UNIT")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="单位定义",description = "单位定义")
|
||||||
|
public class WmsUnit extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "UNIT_CODE")
|
||||||
|
@ApiParam(value = "单位代码")
|
||||||
|
private String vendorNo;
|
||||||
|
|
||||||
|
@Column(name = "UNIT_NAME")
|
||||||
|
@ApiParam(value = "单位名称")
|
||||||
|
private String unitName;
|
||||||
|
|
||||||
|
@Column(name = "UNIT_PRECISION")
|
||||||
|
@ApiParam(value = "单位精度")
|
||||||
|
private String unitPrecision;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 单位换算
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 14:18
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_UNIT_CONVERT")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="单位换算",description = "单位换算")
|
||||||
|
public class WmsUnitConvert extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "UNIT_CODE")
|
||||||
|
@ApiParam(value = "单位代码")
|
||||||
|
private String unitCode;
|
||||||
|
|
||||||
|
@Column(name = "DEST_UNIT_CODE")
|
||||||
|
@ApiParam(value = "目标单位")
|
||||||
|
private String destUnitCode;
|
||||||
|
|
||||||
|
@Column(name = "UNIT_COEFFICIENT")
|
||||||
|
@ApiParam(value = "换算率")
|
||||||
|
private Double unitCoefficient;
|
||||||
|
|
||||||
|
public Double getUnitCoefficient() {
|
||||||
|
return this.unitCoefficient == null ? 0 : this.unitCoefficient.doubleValue();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 供应商零件关系
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 13:47
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_VENDOR_PART")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="供应商零件关系",description = "供应商零件关系")
|
||||||
|
public class WmsVendorPart extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "VENDOR_NO")
|
||||||
|
@ApiParam(value = "供应商编号")
|
||||||
|
private String vendorNo;
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam(value = "物料号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :工作中心
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 14:56
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_WORK_CENTER")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="工作中心",description = "工作中心")
|
||||||
|
public class WmsWorkCenter extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam(value = "工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_NAME")
|
||||||
|
@ApiParam(value = "工作中心名称")
|
||||||
|
private String workCenterName;
|
||||||
|
|
||||||
|
@Column(name = "ERP_WORK_CENTER")
|
||||||
|
@ApiParam(value = "ERP_工作中心")
|
||||||
|
private String erpWorkCenter;
|
||||||
|
|
||||||
|
@Column(name = "WORK_VER")
|
||||||
|
@ApiParam(value = "生产版本")
|
||||||
|
private String workVer;
|
||||||
|
|
||||||
|
@Column(name = "SRC_ZONE_NO")
|
||||||
|
@ApiParam(value = "原料扣减库区")
|
||||||
|
private String srcZoneNo;
|
||||||
|
|
||||||
|
@Column(name = "DESC_ZONE_NO")
|
||||||
|
@ApiParam(value = "成品库区")
|
||||||
|
private String descZoneNo;
|
||||||
|
|
||||||
|
@Column(name = "DESC_LOCATION_CODE")
|
||||||
|
@ApiParam(value = "成品库位")
|
||||||
|
private String descLocationCode;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 工作中心线边库区关系
|
||||||
|
* @Reference :
|
||||||
|
* @Author : amy
|
||||||
|
* @CreateDate : 2019-06-11 15:01
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_WORK_CENTER_ZONE")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="工作中心线边库区关系",description = "工作中心线边库区关系")
|
||||||
|
public class WmsWorkCenterZone extends BaseBean {
|
||||||
|
|
||||||
|
@Column(name = "WORK_CENTER_CODE")
|
||||||
|
@ApiParam(value = "工作中心代码")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name = "ZONE_NO")
|
||||||
|
@ApiParam(value = "线边库区")
|
||||||
|
private String zoneNo;
|
||||||
|
}
|
Loading…
Reference in New Issue