集成oms服务模块

This commit is contained in:
hjx
2026-01-19 15:20:20 +08:00
parent 1837337488
commit 56356839bf
163 changed files with 16893 additions and 0 deletions
@@ -0,0 +1,129 @@
package com.mhd.oms.constant;
/**
* 作业任务常量
* @author Administrator
*/
public interface OrderConstant {
/** 作业任务单号前缀 */
String TASK_NO_PREFIX = "PO";
/** 供应链单号前缀 */
String SCM_NO_PREFIX = "SCM";
/** ========================== 采购订单状态 ========================== */
/** 未审核 */
Integer PUR_STATUS_1 = 1;
/** 已审核 */
Integer PUR_STATUS_2 = 2;
/** 已拒绝 */
Integer PUR_STATUS_3 = 3;
/** 已生成 */
Integer PUR_STATUS_4 = 4;
/** 部分采购 */
Integer PUR_STATUS_5 = 5;
/** 完成 */
Integer PUR_STATUS_6 = 6;
/** 已取消 */
Integer PUR_STATUS_7 = 7;
/** 已拦截 */
Integer PUR_STATUS_8 = 8;
/** ========================== 采购订单状态组 ========================== */
/** 无需拦截的状态 */
Integer[] PUR_STATUS_GROUP_UNABLE_INTERCEPT = {PUR_STATUS_6, PUR_STATUS_7, PUR_STATUS_8};
/** 不能被取消审核的状态 */
Integer[] PUR_STATUS_GROUP_UNABLE_CANCEL_AUDIT = {PUR_STATUS_1, PUR_STATUS_4, PUR_STATUS_5,PUR_STATUS_6,PUR_STATUS_7,PUR_STATUS_8};
/** ========================== 销售订单状态 ========================== */
/** 未审核 */
Integer SO_STATUS_1 = 1;
/** 已审核 */
Integer SO_STATUS_2 = 2;
/** 已拒绝 */
Integer SO_STATUS_3 = 3;
/** 已生成 */
Integer SO_STATUS_4 = 4;
/** 部分销售 */
Integer SO_STATUS_5 = 5;
/** 完成 */
Integer SO_STATUS_6 = 6;
/** 已取消 */
Integer SO_STATUS_7 = 7;
/** 已拦截 */
Integer SO_STATUS_8 = 8;
/** ========================== 销售订单状态组 ========================== */
/** 无需拦截的状态 */
Integer[] SO_STATUS_GROUP_UNABLE_INTERCEPT = {PUR_STATUS_6, PUR_STATUS_7, PUR_STATUS_8};
/** 不能被取消审核的状态 */
Integer[] SO_STATUS_GROUP_UNABLE_CANCEL_AUDIT = {PUR_STATUS_1, PUR_STATUS_4, PUR_STATUS_5,PUR_STATUS_6,PUR_STATUS_7,PUR_STATUS_8};
/** ========================== 供应链订单状态 ========================== */
/** 未审核 */
Integer SCM_STATUS_1 = 1;
/** 已审核 */
Integer SCM_STATUS_2 = 2;
/** 部分生成 */
Integer SCM_STATUS_3 = 3;
/** 全部生成 */
Integer SCM_STATUS_4 = 4;
/** 部分完成 */
Integer SCM_STATUS_5 = 5;
/** 已完成 */
Integer SCM_STATUS_6 = 6;
/** 已取消 */
Integer SCM_STATUS_7 = 7;
/** 已拦截 */
Integer SCM_STATUS_8 = 8;
/** ========================== 供应链订单状态组 ========================== */
/** 可生成作业任务的状态 */
Integer[] SCM_STATUS_GROUP_CAN_GENERATE_TASK = {SCM_STATUS_2, SCM_STATUS_3};
/** ========================== 供应链订单来源 ========================== */
/** 采购订单 */
Integer SCM_SOURCE_1 = 1;
/** 销售订单 */
Integer SCM_SOURCE_2 = 2;
/** 运输订单 */
Integer SCM_SOURCE_3 = 3;
/** ========================== 作业任务状态 ========================== */
/** 未下发 */
Integer TASK_STATUS_0 = 0;
/** 已下发 */
Integer TASK_STATUS_1 = 1;
/** 已完成 */
Integer TASK_STATUS_2 = 2;
/** 已拦截 */
Integer TASK_STATUS_3 = 3;
/** 已取消 */
Integer TASK_STATUS_4 = 4;
/** ========================== 作业任务状态组 ========================== */
/** 不可拦截状态组 */
Integer[] TASK_STATUS_GROUP_UNABLE_INTERCEPT = {TASK_STATUS_1, TASK_STATUS_2};
/** ========================== 作业任务类型 ========================== */
/** 入库 */
Integer TASK_TYPE_0 = 0;
/** 出库 */
Integer TASK_TYPE_1 = 1;
/** 运输 */
Integer TASK_TYPE_2 = 2;
/** ========================== 拦截订单状态 ========================== */
/** 无拦截 */
Integer INTERCEPT_STATUS_0 = 0;
/** 拦截成功 */
Integer INTERCEPT_STATUS_1 = 1;
/** 拦截失败 */
Integer INTERCEPT_STATUS_2 = 2;
}
@@ -0,0 +1,30 @@
package com.mhd.oms.constant;
/**
* OMS枚举
*
* @author
*/
public enum OrderEnum {
// ๑乛◡乛๑卡在了奇怪的地方
TEST_1("1", "1");
private final String code;
private final String info;
OrderEnum(String code, String info)
{
this.code = code;
this.info = info;
}
public String getCode()
{
return code;
}
public String getInfo()
{
return info;
}
}