Merge branch 'dev' of http://git.estsh.com/i3-IMPP/i3plus-pojo into dev
commit
3924be2504
@ -0,0 +1,52 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.aps.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.aps.annotation.FieldAnnotation;
|
||||||
|
import cn.estsh.i3plus.pojo.aps.common.BeanRelation;
|
||||||
|
import cn.estsh.i3plus.pojo.aps.holders.EBaseOrder;
|
||||||
|
import cn.estsh.i3plus.pojo.aps.holders.EMaterialDeliveryPromise;
|
||||||
|
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 javax.persistence.Column;
|
||||||
|
import javax.persistence.Entity;
|
||||||
|
import javax.persistence.Table;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :物料交期承诺
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jason.niu
|
||||||
|
* @CreateDate : 2020-06-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Entity
|
||||||
|
@Table(name = "APS_MATERIAL_DELIVERY_PROMISE")
|
||||||
|
@Api("物料")
|
||||||
|
public class MaterialDeliveryPromise extends BaseBean {
|
||||||
|
@Column(name="QTY")
|
||||||
|
@ApiParam(value ="到货数量")
|
||||||
|
private Double count;
|
||||||
|
|
||||||
|
@Column(name="DATE_TIME")
|
||||||
|
@ApiParam(value ="到货日期")
|
||||||
|
private Date dateTime;
|
||||||
|
|
||||||
|
@Column(name="MATERIAL_ID")
|
||||||
|
@ApiParam(value ="物料")
|
||||||
|
@FieldAnnotation(relation = "Material", notEmpty = true)
|
||||||
|
private Long materialId;
|
||||||
|
|
||||||
|
public Material getMaterial() {
|
||||||
|
return BeanRelation.get(this, EMaterialDeliveryPromise.Material);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMaterial(Material material) {
|
||||||
|
this.materialId = material != null ? material.getId() : 0l;
|
||||||
|
BeanRelation.set(this, EMaterialDeliveryPromise.Material, material);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.aps.holders;
|
||||||
|
|
||||||
|
public enum EMaterialDeliveryPromise {
|
||||||
|
Material,
|
||||||
|
}
|
@ -0,0 +1,36 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.aps.model;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 物料交期分析表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jason.niu
|
||||||
|
* @CreateDate : 2020-06-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class MaterialDeliveryAnalyze {
|
||||||
|
|
||||||
|
private String orderCode;
|
||||||
|
|
||||||
|
private String orderName;
|
||||||
|
|
||||||
|
private String materialCode;
|
||||||
|
|
||||||
|
private String materialName;
|
||||||
|
|
||||||
|
private String labelName;
|
||||||
|
|
||||||
|
private String labelColor;
|
||||||
|
|
||||||
|
private Date requireDate;
|
||||||
|
|
||||||
|
private Date arrivalDate;
|
||||||
|
|
||||||
|
private Double requireCount;
|
||||||
|
|
||||||
|
private Double count;
|
||||||
|
}
|
@ -0,0 +1,9 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.aps.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.aps.bean.MaterialDeliveryPromise;
|
||||||
|
import org.springframework.data.repository.CrudRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface MaterialDeliveryPromiseRepository extends CrudRepository<MaterialDeliveryPromise, Long> {
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Class name="MaterialDeliveryPromise">
|
||||||
|
<Relation field="Material" name="Material" type="MULTI_TO_ONE">
|
||||||
|
</Relation>
|
||||||
|
</Class>
|
@ -0,0 +1,54 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.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 wangjie
|
||||||
|
* @date 2020/2/12 17:41
|
||||||
|
* @desc
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@Table(name = "IF_PICK_DATA")
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api("IF_拣货数据")
|
||||||
|
public class IfPickData extends BaseBean implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -1057633269490937118L;
|
||||||
|
|
||||||
|
@Column(name = "AREA_NO")
|
||||||
|
@ApiParam("区域代码")
|
||||||
|
private String areaNo;
|
||||||
|
|
||||||
|
@Column(name = "SECTION_NO")
|
||||||
|
@ApiParam("区段编号")
|
||||||
|
private String sectionNo;
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam("物料编号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
@Column(name = "QTY")
|
||||||
|
@ApiParam("拣货数量")
|
||||||
|
private Integer qty;
|
||||||
|
|
||||||
|
@Column(name = "SYNC_FLAG")
|
||||||
|
@ApiParam("同步标识")
|
||||||
|
private Integer syncFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.repository;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.ptl.bean.IfPickData;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author wangjie
|
||||||
|
* @date 2020/2/12 17:41
|
||||||
|
* @desc
|
||||||
|
*/
|
||||||
|
|
||||||
|
public interface IfPickDataRepository extends BaseRepository<IfPickData, Long> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,64 @@
|
|||||||
|
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 : COI对照表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jimmy.zeng
|
||||||
|
* @CreateDate : 2020-06-09 16:59
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_COI")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="COI对照表",description = "COI对照表")
|
||||||
|
public class WmsCoi extends BaseBean {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -8298385889006722335L;
|
||||||
|
|
||||||
|
@Column(name = "PART_NO")
|
||||||
|
@ApiParam(value = "物料编号")
|
||||||
|
private String partNo;
|
||||||
|
|
||||||
|
@Column(name = "PART_NAME")
|
||||||
|
@ApiParam(value = "物料名称")
|
||||||
|
private String partName;
|
||||||
|
|
||||||
|
@Column(name = "PART_VOL")
|
||||||
|
@ApiParam(value = "体积")
|
||||||
|
private Double partVol;
|
||||||
|
|
||||||
|
@Column(name = "TRUNROUND_RATE")
|
||||||
|
@ApiParam(value = "周转率")
|
||||||
|
private Double trunroundRate;
|
||||||
|
|
||||||
|
@Column(name = "COI_VALUE")
|
||||||
|
@ApiParam(value = "COI值")
|
||||||
|
private Double coiValue;
|
||||||
|
|
||||||
|
@Column(name = "LAST_UPDATE_DATE")
|
||||||
|
@ApiParam(value = "末次更新日期")
|
||||||
|
private String lastUpdateDate;
|
||||||
|
|
||||||
|
@Column(name = "FREQUENCY")
|
||||||
|
@ApiParam(value = "频次")
|
||||||
|
private Double frequency;
|
||||||
|
|
||||||
|
@Column(name = "LOCATE_NO")
|
||||||
|
@ApiParam(value = "库位")
|
||||||
|
private String locateNo;
|
||||||
|
}
|
@ -0,0 +1,126 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.bean;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.DynamicField;
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||||
|
import cn.estsh.i3plus.pojo.base.enumutil.WmsEnumUtil;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
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 : jimmy.zeng
|
||||||
|
* @CreateDate : 2020-06-09 16:45
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@Table(name="WMS_TRACTICS")
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Api(value="策略表",description = "策略表")
|
||||||
|
public class WmsTractics extends BaseBean {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = -8203200560604263871L;
|
||||||
|
@Column(name="TRACTICS_CODE")
|
||||||
|
@ApiParam(value ="策略代码")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||||
|
private String tracticsCode;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_NAME")
|
||||||
|
@ApiParam(value ="策略名称")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||||
|
private String tracticsName;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_DESC")
|
||||||
|
@ApiParam(value ="策略描述")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||||
|
private String tracticsDesc;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_GRADE")
|
||||||
|
@ApiParam(value ="策略等级")
|
||||||
|
// @AnnoOutputColumn(refClass = WmsEnumUtil.TRACTICS_GRADE.class, refForeignKey = "value", value = "description")
|
||||||
|
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "TRACTICS_GRADE")
|
||||||
|
private Integer tracticsGrade;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_GROUP")
|
||||||
|
@ApiParam(value ="策略组")
|
||||||
|
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "TRACTICS_GROUP")
|
||||||
|
@AnnoOutputColumn(refClass = WmsEnumUtil.TRACTICS_GROUP.class, refForeignKey = "value", value = "description")
|
||||||
|
private Integer tracticsGroup;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_ITEM")
|
||||||
|
@ApiParam(value ="策略项")
|
||||||
|
// @DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.NUMBER)
|
||||||
|
private Integer tracticsItem;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_PART_GROUP")
|
||||||
|
@ApiParam(value ="策略适用物料组")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST,isRequire = 2, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.OBJ,
|
||||||
|
dataSrc = "cn.estsh.i3plus.pojo.wms.bean.WmsPartGroup",
|
||||||
|
searchColumnName = "partGroupNo,partGroupName", listColumnName = "partGroupNo,partGroupName", explicitColumnName = "partGroupNo")
|
||||||
|
private String tracticsPartGroup;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_ZONE")
|
||||||
|
@ApiParam(value ="策略适用存储区")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.LIST, isRequire = 2, getValWay = CommonEnumUtil.DYNAMIC_FIELD_GET_WAY.OBJ,
|
||||||
|
dataSrc ="cn.estsh.i3plus.pojo.wms.bean.WmsZones",
|
||||||
|
searchColumnName = "zoneNo,zoneName",listColumnName = "zoneNo,zoneName", explicitColumnName = "zoneNo")
|
||||||
|
private String tracticsZone;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_PARAM")
|
||||||
|
@ApiParam(value ="参数")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.TEXT)
|
||||||
|
private String tracticsParam;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_START_TIME")
|
||||||
|
@ApiParam(value ="策略生效日期")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME)
|
||||||
|
private String tracticsStartTime;
|
||||||
|
|
||||||
|
@Column(name="TRACTICS_END_TIME")
|
||||||
|
@ApiParam(value ="策略失效日期")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.DATETIME)
|
||||||
|
private String tracticsEndTime;
|
||||||
|
|
||||||
|
@Column(name="LEV1_STRATEGY")
|
||||||
|
@ApiParam(value ="1级策略上架")
|
||||||
|
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_ONE.class, refForeignKey = "value", value = "description")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_ONE")
|
||||||
|
private String lev1Strategy;
|
||||||
|
|
||||||
|
// @Column(name="LEV1_STRATEGY")
|
||||||
|
@Transient
|
||||||
|
@ApiParam(value ="1级策略拣货")
|
||||||
|
@AnnoOutputColumn(refClass = WmsEnumUtil.PICKING_TRACTICS_ITEM_ONE.class, refForeignKey = "value", value = "description")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "PICKING_TRACTICS_ITEM_ONE")
|
||||||
|
private String lev1StrategyPicking;
|
||||||
|
|
||||||
|
@Column(name="LEV2_STRATEGY")
|
||||||
|
@ApiParam(value ="2级策略")
|
||||||
|
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_TWO.class, refForeignKey = "value", value = "description")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_TWO")
|
||||||
|
private String lev2Strategy;
|
||||||
|
|
||||||
|
@Column(name="LEV3_STRATEGY")
|
||||||
|
@ApiParam(value ="3级策略")
|
||||||
|
@AnnoOutputColumn(refClass = WmsEnumUtil.INSTOCK_TRACTICS_ITEM_THREE.class, refForeignKey = "value", value = "description")
|
||||||
|
@DynamicField(webFieldType = CommonEnumUtil.FIELD_TYPE.SELECT, isMultiple = 1, dataSrc = "INSTOCK_TRACTICS_ITEM_THREE")
|
||||||
|
private String lev3Strategy;
|
||||||
|
|
||||||
|
// public String getIev1StrategyPicking (String lev1StrategyPicking) {
|
||||||
|
// return this.lev1Strategy = lev1StrategyPicking;
|
||||||
|
// }
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.WmsCoi;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : COI对照表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jimmy.zeng
|
||||||
|
* @CreateDate : 2020-06-10 10:24
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface WmsCoiRepository extends BaseRepository<WmsCoi,Long> {
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.wms.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.wms.bean.WmsTractics;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 策略表
|
||||||
|
* @Reference :
|
||||||
|
* @Author : jimmy.zeng
|
||||||
|
* @CreateDate : 2020-06-10 10:24
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface WmsTracticsRepository extends BaseRepository<WmsTractics,Long>{
|
||||||
|
}
|
Loading…
Reference in New Issue