统一修改ruoyi->bms
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.bms.price.enums;
|
||||
|
||||
/**
|
||||
* Credit arrears status snapshot on prc_order_bill when billing.
|
||||
* Billing continues even when ARREARS; occupy still runs with checkAvailable=false.
|
||||
*/
|
||||
public enum BillCreditArrearsStatus
|
||||
{
|
||||
NORMAL("NORMAL"),
|
||||
ARREARS("ARREARS");
|
||||
|
||||
private final String code;
|
||||
|
||||
BillCreditArrearsStatus(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
/** 将数据库或接口中的状态值转换为枚举;未知值返回 null。 */
|
||||
public static BillCreditArrearsStatus of(String code)
|
||||
{
|
||||
if (code == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
for (BillCreditArrearsStatus status : values())
|
||||
{
|
||||
if (status.code.equalsIgnoreCase(code.trim()))
|
||||
{
|
||||
return status;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.bms.price.enums;
|
||||
|
||||
/**
|
||||
* Customer effective status snapshot on prc_order_bill when billing.
|
||||
* Billing continues even when MISSING / DISABLED.
|
||||
*/
|
||||
public enum BillCustomerActiveStatus
|
||||
{
|
||||
ACTIVE("ACTIVE"),
|
||||
MISSING("MISSING"),
|
||||
DISABLED("DISABLED");
|
||||
|
||||
private final String code;
|
||||
|
||||
BillCustomerActiveStatus(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
/** 将数据库或接口中的状态值转换为枚举;未知值返回 null。 */
|
||||
public static BillCustomerActiveStatus of(String code)
|
||||
{
|
||||
if (code == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
for (BillCustomerActiveStatus status : values())
|
||||
{
|
||||
if (status.code.equalsIgnoreCase(code.trim()))
|
||||
{
|
||||
return status;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.bms.price.enums;
|
||||
|
||||
/** Billing task success flag on prc_billing_task.success_status */
|
||||
public enum BillTaskSuccessStatus
|
||||
{
|
||||
WAITING("WAITING"),
|
||||
SUCCESS("SUCCESS"),
|
||||
FAILED("FAILED");
|
||||
|
||||
private final String code;
|
||||
|
||||
BillTaskSuccessStatus(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.bms.price.enums;
|
||||
|
||||
/** Billing task type on prc_billing_task.bill_type */
|
||||
public enum BillTaskType
|
||||
{
|
||||
/** first-time billing */
|
||||
PENDING("PENDING"),
|
||||
/** same transfer/order already billed */
|
||||
REBILL("REBILL"),
|
||||
/** refund */
|
||||
REFUND("REFUND");
|
||||
|
||||
private final String code;
|
||||
|
||||
BillTaskType(String code)
|
||||
{
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public String getCode()
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
public static BillTaskType fromCode(String code)
|
||||
{
|
||||
if (code == null || code.isEmpty())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
for (BillTaskType t : values())
|
||||
{
|
||||
if (t.code.equalsIgnoreCase(code.trim()))
|
||||
{
|
||||
return t;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.bms.price.enums;
|
||||
|
||||
/**
|
||||
* TMS 查询订单计费数据时的标识匹配类型。
|
||||
*/
|
||||
public enum TmsOrderBillMatchType {
|
||||
/** 没有匹配到订单。 */
|
||||
NOT_FOUND("NOT_FOUND", "未找到订单"),
|
||||
/**
|
||||
* 按订单号匹配。
|
||||
*/
|
||||
ORDER_NO("ORDER_NO", "订单号"),
|
||||
/**
|
||||
* 按运单号匹配。
|
||||
*/
|
||||
TRACKING_NO("TRACKING_NO", "运单号"),
|
||||
/**
|
||||
* 按转单号匹配。
|
||||
*/
|
||||
TRANSFER_NO("TRANSFER_NO", "转单号"),
|
||||
/**
|
||||
* 同一标识匹配到多条记录,无法唯一确定订单。
|
||||
*/
|
||||
MULTIPLE("MULTIPLE", "多条匹配");
|
||||
|
||||
private final String code;
|
||||
private final String label;
|
||||
|
||||
TmsOrderBillMatchType(String code, String label) {
|
||||
this.code = code;
|
||||
this.label = label;
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getLabel() {
|
||||
return label;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user