创建波次计划规则实体类和规则明细实体类
parent
eed24e0297
commit
14cfa5fa47
@ -0,0 +1,109 @@
|
||||
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;
|
||||
import javax.persistence.Transient;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 波次规则数据
|
||||
* @Reference :
|
||||
* @Author : siliter.yuan
|
||||
* @CreateDate : 2020-03-25 10:10
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "WMS_WAVE_RULE")
|
||||
@Api(value = "波次规则数据表")
|
||||
public class WmsWaveRule extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 8664373854844368961L;
|
||||
|
||||
@Column(name = "RULE_CODE")
|
||||
@ApiParam(value = "波次规则代码")
|
||||
public String ruleCode;
|
||||
|
||||
@Column(name = "RULE_DESC")
|
||||
@ApiParam(value = "波次规则描述")
|
||||
public String ruleDesc;
|
||||
|
||||
/**
|
||||
* 分配规则 2-不分配(默认) 1-分配到责任区
|
||||
*/
|
||||
@Column(name = "ALLOCATE_RULE")
|
||||
@ApiParam(value = "分配规则", example = "1")
|
||||
public Integer allocateRule;
|
||||
|
||||
@Column(name = "EXTEND_SQL")
|
||||
@ApiParam(value = "扩展脚本")
|
||||
public String extendSql;
|
||||
|
||||
@Column(name = "START_EFFECT_DATE")
|
||||
@ApiParam(value = "开始生效时间")
|
||||
public String startEffectDate;
|
||||
|
||||
@Column(name = "END_EFFECT_DATE")
|
||||
@ApiParam(value = "结束生效时间")
|
||||
public String endEffectDate;
|
||||
|
||||
@Column(name = "SORT_CONDITIONS")
|
||||
@ApiParam(value = "单据排序条件")
|
||||
public String sortConditions;
|
||||
|
||||
@Column(name = "ORDER_CONTROL_TIME")
|
||||
@ApiParam(value = "单据控制时间")
|
||||
public String orderControlTime;
|
||||
|
||||
@Column(name = "FIXED_ORDER_QTY")
|
||||
@ApiParam(value = "固定单据数量", example = "0")
|
||||
public Integer fixedOrderQty;
|
||||
|
||||
@Column(name = "FIXED_PART_QTY")
|
||||
@ApiParam(value = "固定物料箱数", example = "0")
|
||||
public Integer fixedPartQty;
|
||||
|
||||
@Column(name = "WAVE_QTY")
|
||||
@ApiParam(value = "波次数量", example = "0")
|
||||
public Integer waveQty;
|
||||
|
||||
@Column(name = "ORDER_MAX_QTY")
|
||||
@ApiParam(value = "最大单据数量", example = "0")
|
||||
public Integer orderMaxQty;
|
||||
|
||||
@Column(name = "PART_MAX_QTY")
|
||||
@ApiParam(value = "最大物料数量", example = "0")
|
||||
public Double partMaxQty;
|
||||
|
||||
@Column(name = "ORDER_TIMEOUT_TIME")
|
||||
@ApiParam(value = "单据等待时间", example = "0")
|
||||
public Integer orderTimeOutTime;
|
||||
|
||||
@Column(name = "NEXT_WAVE_TIME")
|
||||
@ApiParam(value = "下次波次时间")
|
||||
public String nextWaveTime;
|
||||
|
||||
@Column(name = "IS_CROSS_AREA")
|
||||
@ApiParam(value = "允许跨区", example = "0")
|
||||
public Integer isCrossArea;
|
||||
|
||||
@Column(name = "IS_COLLECTION")
|
||||
@ApiParam(value = "允许整箱归集")
|
||||
public Integer isCollection;
|
||||
|
||||
@Transient
|
||||
@ApiParam(value = "波次规则明细信息")
|
||||
private List<WmsWaveRuleDetails> waveRuleDetailsList;
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
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 : siliter.yuan
|
||||
* @CreateDate : 2020-03-25 10:10
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "WMS_WAVE_RULE_DETAILS")
|
||||
@Api(value = "波次规则明细数据表")
|
||||
public class WmsWaveRuleDetails extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 8664373954844368961L;
|
||||
|
||||
@Column(name = "RULE_ID")
|
||||
@ApiParam(value = "波次规则编号", example = "0")
|
||||
public Long ruleId;
|
||||
|
||||
@Column(name = "FIELD_CH_NAME")
|
||||
@ApiParam(value = "字段中文名称")
|
||||
public String fieldChName;
|
||||
|
||||
@Column(name = "FIELD_EN_NAME")
|
||||
@ApiParam(value = "字段英文名称")
|
||||
public String fieldEnName;
|
||||
|
||||
@Column(name = "MERGE_OPERATOR_TYPE")
|
||||
@ApiParam(value = "合并操作类型", example = "0")
|
||||
public Integer mergeOperatorType;
|
||||
|
||||
@Column(name = "FILED_VALUE")
|
||||
@ApiParam(value = "字段值")
|
||||
public String fieldValue;
|
||||
|
||||
public Long getRuleId() {
|
||||
return ruleId == null ? 0L : ruleId.longValue();
|
||||
}
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
package cn.estsh.i3plus.pojo.wms.modelbean;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import org.hibernate.annotations.ColumnDefault;
|
||||
|
||||
/**
|
||||
* @Description : 移库单数据模型Model
|
||||
* @Reference :
|
||||
* @Author : siliter.yuan
|
||||
* @CreateDate : 2020-03-26 11:18
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@Api("移库单数据模型")
|
||||
public class WmsDocMovementModel {
|
||||
|
||||
@ApiParam("订单号")
|
||||
private String orderNo;
|
||||
|
||||
@ApiParam(value = "业务类型", example = "1")
|
||||
private Integer busiType;
|
||||
|
||||
@ApiParam("客户代码")
|
||||
private String custNo;
|
||||
|
||||
@ApiParam("来源仓库代码")
|
||||
private String srcWhNo;
|
||||
|
||||
@ApiParam("来源存储区代码")
|
||||
private String srcZoneNo;
|
||||
|
||||
@ApiParam("目标仓库代码")
|
||||
private String destWhNo;
|
||||
|
||||
@ApiParam("目标存储区代码")
|
||||
private String destZoneNo;
|
||||
|
||||
@ApiParam("物料组代码")
|
||||
private String partGroupNo;
|
||||
|
||||
@ApiParam("订单状态")
|
||||
private String orderStatus;
|
||||
|
||||
@ApiParam(value = "优先级", example = "1")
|
||||
public Integer priority;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "已拣货数量", example = "1")
|
||||
private Double pickQty;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "已出库数量", example = "1")
|
||||
private Double outQty;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "已移库数量", example = "1")
|
||||
private Double moveQty;
|
||||
|
||||
@ColumnDefault("0")
|
||||
@ApiParam(value = "需求数量", example = "0")
|
||||
public Double qty;
|
||||
|
||||
@ApiParam("源单行号")
|
||||
public String srcItem;
|
||||
|
||||
@ApiParam(value = "源单号")
|
||||
private String srcNo;
|
||||
|
||||
@ApiParam("物料号")
|
||||
private String partNameRdd;
|
||||
|
||||
@ApiParam("单位")
|
||||
private String unit;
|
||||
|
||||
@ApiParam(value = "标准包装", example = "1")
|
||||
private Double snp;
|
||||
}
|
@ -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.WmsWaveRuleDetails;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : siliter.yuan
|
||||
* @CreateDate : 2020-03-25 11:29
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsWaveRuleDetailsRepository extends BaseRepository<WmsWaveRuleDetails, 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.WmsWaveRule;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : siliter.yuan
|
||||
* @CreateDate : 2020-03-25 11:29
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface WmsWaveRuleRepository extends BaseRepository<WmsWaveRule, Long> {
|
||||
}
|
Loading…
Reference in New Issue