添加枚举, 优化变量命名
This commit is contained in:
parent
a21fa00f09
commit
4e752243c0
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库虚拟标记
|
||||||
|
*/
|
||||||
|
public enum InboundFictitiousFlag
|
||||||
|
{
|
||||||
|
REAL("0", "真实库位"),
|
||||||
|
VIRTUAL("1", "虚拟库位");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundFictitiousFlag(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库层级
|
||||||
|
*/
|
||||||
|
public enum InboundLevelType
|
||||||
|
{
|
||||||
|
LEVEL_ONE("1", "一级库"),
|
||||||
|
LEVEL_TWO("2", "二级库");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundLevelType(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库通知单收货状态
|
||||||
|
*/
|
||||||
|
public enum InboundNoticeReceivingStatus
|
||||||
|
{
|
||||||
|
CREATED("0", "新建"),
|
||||||
|
PROCESSING("1", "处理中"),
|
||||||
|
COMPLETED("2", "已完成"),
|
||||||
|
PUSHED("3", "已推送");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundNoticeReceivingStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库通知单明细内部状态
|
||||||
|
*/
|
||||||
|
public enum InboundNoticeTabInStatus
|
||||||
|
{
|
||||||
|
INITIAL("0", "初始"),
|
||||||
|
LOCKED("1", "锁定"),
|
||||||
|
TRANSFERRED("2", "已转移");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundNoticeTabInStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库通知单明细收货状态
|
||||||
|
*/
|
||||||
|
public enum InboundNoticeTabReceivingStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待上架"),
|
||||||
|
PARTIAL("1", "部分上架"),
|
||||||
|
COMPLETED("2", "上架完成"),
|
||||||
|
PUSHED("3", "已推送");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundNoticeTabReceivingStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库任务内部状态
|
||||||
|
*/
|
||||||
|
public enum InboundOngoodsshelfInStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待执行"),
|
||||||
|
PLC_ASSIGNED("2", "已分配PLC");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundOngoodsshelfInStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库相关资源锁定状态
|
||||||
|
*/
|
||||||
|
public enum InboundResourceLockStatus
|
||||||
|
{
|
||||||
|
UNLOCKED("0", "未锁定"),
|
||||||
|
LOCKED("1", "已锁定");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundResourceLockStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库相关资源占用状态
|
||||||
|
*/
|
||||||
|
public enum InboundResourceOccupancyStatus
|
||||||
|
{
|
||||||
|
IDLE("0", "空闲"),
|
||||||
|
OCCUPIED("1", "占用");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundResourceOccupancyStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库仓储模式
|
||||||
|
*/
|
||||||
|
public enum InboundStorageMode
|
||||||
|
{
|
||||||
|
STANDARD("1", "标准入库"),
|
||||||
|
WORKSHOP_RETURN("2", "车间退货"),
|
||||||
|
DIRECT_INBOUND("3", "无单直入"),
|
||||||
|
TRANSFER("4", "调拨入库");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundStorageMode(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库任务状态
|
||||||
|
*/
|
||||||
|
public enum InboundTaskStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待处理"),
|
||||||
|
DISABLED("1", "停用"),
|
||||||
|
CONFIRMED("3", "已确认");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundTaskStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 入库任务类型
|
||||||
|
*/
|
||||||
|
public enum InboundTaskType
|
||||||
|
{
|
||||||
|
INBOUND("0", "入库任务");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
InboundTaskType(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通知任务状态
|
||||||
|
*/
|
||||||
|
public enum NoticeTaskStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待处理"),
|
||||||
|
COMPLETED("1", "已处理");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
NoticeTaskStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通知任务类型
|
||||||
|
*/
|
||||||
|
public enum NoticeTaskType
|
||||||
|
{
|
||||||
|
INBOUND("0", "入库通知任务"),
|
||||||
|
OUTBOUND("1", "出库通知任务");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
NoticeTaskType(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库审核状态
|
||||||
|
*/
|
||||||
|
public enum OutboundAuditStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待审核"),
|
||||||
|
APPROVED("1", "已审核");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundAuditStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库确认状态
|
||||||
|
*/
|
||||||
|
public enum OutboundConfirmStatus
|
||||||
|
{
|
||||||
|
PENDING("0", "待执行"),
|
||||||
|
PARTIAL("1", "部分完成"),
|
||||||
|
COMPLETED("2", "已完成");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundConfirmStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库单状态
|
||||||
|
*/
|
||||||
|
public enum OutboundOrderStatus
|
||||||
|
{
|
||||||
|
CREATED("0", "新建"),
|
||||||
|
LOCKED("1", "已锁定");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundOrderStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库相关资源锁定状态
|
||||||
|
*/
|
||||||
|
public enum OutboundResourceLockStatus
|
||||||
|
{
|
||||||
|
UNLOCKED("0", "未锁定"),
|
||||||
|
LOCKED("1", "已锁定");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundResourceLockStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库相关资源占用状态
|
||||||
|
*/
|
||||||
|
public enum OutboundResourceOccupancyStatus
|
||||||
|
{
|
||||||
|
IDLE("0", "空闲"),
|
||||||
|
OCCUPIED("1", "占用");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundResourceOccupancyStatus(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 出库类型
|
||||||
|
*/
|
||||||
|
public enum OutboundType
|
||||||
|
{
|
||||||
|
STANDARD("1", "普通出库"),
|
||||||
|
TRANSFER("3", "调拨出库");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
OutboundType(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓库AGV标记
|
||||||
|
*/
|
||||||
|
public enum StorageAgvFlag
|
||||||
|
{
|
||||||
|
NON_AGV("0", "非AGV仓库"),
|
||||||
|
AGV("1", "AGV仓库");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
StorageAgvFlag(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
||||||
|
package com.zbf.common.enums.custom;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务虚拟标记
|
||||||
|
*/
|
||||||
|
public enum TaskFictitiousFlag
|
||||||
|
{
|
||||||
|
REAL("0", "真实任务"),
|
||||||
|
VIRTUAL("1", "虚拟任务");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
private final String description;
|
||||||
|
|
||||||
|
TaskFictitiousFlag(String code, String description)
|
||||||
|
{
|
||||||
|
this.code = code;
|
||||||
|
this.description = description;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode()
|
||||||
|
{
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDescription()
|
||||||
|
{
|
||||||
|
return description;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user