【包装规格】

yun-zuoyi
1111 6 years ago
parent 64cda23c12
commit 71c867dd8c

@ -1970,7 +1970,8 @@ public class WmsEnumUtil {
LOCATE(30, "LOCATE", "库位对象"),
MATERIAL(40, "MATERIAL", "物料对象"),
TRANS_TYPE(50, "TRANS_TYPE", "交易代码对象"),
BUSI_TYPE(60, "BUSI_TYPE", "业务类型对象");
BUSI_TYPE(60, "BUSI_TYPE", "业务类型对象"),
BUSI_OPERATION_TYPE(70, "BUSI_OPERATION_TYPE", "业务操作对象");
private String code;
private String description;
@ -2311,6 +2312,56 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
* NC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum BUSI_OPERATION_TYPE {
//收货改数
GOODS_CHANGE_NUMBER(10, "GOODS_CHANGE_NUMBER", "收货改数") ;
private int value;
private String code;
private String description;
BUSI_OPERATION_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
/**
*

@ -0,0 +1,51 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
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.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;
/**
* @Description :
* @Reference :
* @Author :
* @CreateDate : 2019-11-07 16:06
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_CONTAINER_TYPE")
@Api("容器类型")
public class WmsContainerType extends BaseBean {
private static final long serialVersionUID = 4849044986767609347L;
@Column(name = "CT_CODE",unique = true)
@ApiParam(value = "容器类型代码")
private String ctCode;
@Column(name = "CT_NAME")
@ApiParam(value = "容器类型名称")
private String ctName;
@Column(name = "USE_LIMIT")
@ApiParam(value = "使用期限")
private Integer useLimit;
@Column(name = "IS_RECYCLE")
@ApiParam(value = "是否回收")
@AnnoOutputColumn(refClass = WmsEnumUtil.TRUE_OR_FALSE.class, refForeignKey = "value", value = "description")
private Integer isRecycle;
}

@ -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;
import javax.persistence.Transient;
/**
* @Description :
* @Reference :
* @Author :
* @CreateDate : 2019-11-07 16:06
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_PACKAGE_SPEC")
@Api("包装规格")
public class WmsPackageSpec extends BaseBean {
private static final long serialVersionUID = 4849044986767609445L;
@Column(name = "SPEC_CODE",unique = true)
@ApiParam(value = "包装规格代码")
private String specCode;
@Column(name = "SPEC_NAME")
@ApiParam(value = "包装规格名称")
private String specName;
@Column(name = "QTY")
@ApiParam(value = "包装数量")
private Double qty;
@Column(name = "PARENT_SPEC")
@ApiParam(value = "上级规格")
private String parentSpec;
@Column(name = "SPEC_LEVEL")
@ApiParam(value = "规格层级")
private String specLevel;
@Column(name = "IS_MIXED")
@ApiParam(value = "是否混包")
private Integer isMixed;
@Column(name = "POCKET_TYPE")
@ApiParam(value = "默认容器类型")
private String pocketType;
@ApiParam(value = "上级规格名称")
@Transient
private String parentName;
}

@ -190,6 +190,19 @@ public class WmsPart extends BaseBean {
public WmsPart() {
}
public Double getQty() {
return qty == null? 0:qty;
}
public Double getMin() {
return min == null? 0: min;
}
public Double getMax() {
return max == null? 0:max;
}
public WmsPart(String partNo, String partName, Double maxQty, Double minQty, Double cqty, String partType) {
this.partNo = partNo;
this.partName = partName;

@ -0,0 +1,68 @@
package cn.estsh.i3plus.pojo.wms.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
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;
/**
* @Description :
* @Reference :
* @Author :
* @CreateDate : 2019-11-07 16:06
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "WMS_PART_PACKAGE")
@Api("物料包装关系")
public class WmsPartPackage extends BaseBean {
private static final long serialVersionUID = 4849044986767609345L;
@Column(name = "PART_NO",unique = true)
@ApiParam(value = "物料编码")
private String partNo;
@Column(name = "SPEC_CODE")
@ApiParam(value = "包装规格代码")
private String specCode;
@Column(name = "SNP_QTY")
@ApiParam(value = "单包装数量")
private String snpQty;
@Column(name = "BOX_QTY")
@ApiParam(value = "包装箱数")
private String boxQty;
@Column(name = "IS_DEFAULT")
@ApiParam(value = "是否默认包规")
private String isDefault;
@Column(name = "IS_MIXED")
@ApiParam(value = "是否混包")
private String isMixed;
@Column(name = "IS_PRINT")
@ApiParam(value = "是否打印包装清单")
private String isPrint;
@Column(name = "TEMPLATE_NO")
@ApiParam(value = "包装清单模板")
private String templateNo;
@Column(name = "POCKET_TYPE")
@ApiParam(value = "容器类型")
private String pocketType;
}

@ -45,6 +45,9 @@ public class WmsDataAuthModel extends BaseBean {
@ApiParam("业务类型列表")
private List<String> busiTypeList;
@ApiParam("业务类型列表")
private List<String> busiOperationTypeList;
@ApiParam(
value = "新增操作",
example = "0"

@ -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.WmsContainerType;
import org.springframework.stereotype.Repository;
/**
* @Description :Repository
* @Reference :
* @Author : gcj
* @CreateDate : 2019-11-08 10:19
* @Modify:
**/
@Repository
public interface WmsContainerTypeRepository extends BaseRepository<WmsContainerType, Long> {
}

@ -0,0 +1,17 @@
package cn.estsh.i3plus.pojo.wms.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.wms.bean.WmsContainerType;
import cn.estsh.i3plus.pojo.wms.bean.WmsPackageSpec;
import org.springframework.stereotype.Repository;
/**
* @Description :Repository
* @Reference :
* @Author : gcj
* @CreateDate : 2019-11-08 10:19
* @Modify:
**/
@Repository
public interface WmsPackageSpecRepository extends BaseRepository<WmsPackageSpec, Long> {
}
Loading…
Cancel
Save