1.1.55 合同订单台账状态常量。
parent
81bc2ea3ef
commit
081119f5ef
@ -0,0 +1,45 @@
|
|||||||
|
package org.dromara.oa.api.enums;
|
||||||
|
|
||||||
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 合同订单台账状态刷新类型
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public enum ContractOrderStatusTypeEnum {
|
||||||
|
|
||||||
|
/** 采购状态 order_purchase_status */
|
||||||
|
PURCHASE("purchase"),
|
||||||
|
|
||||||
|
/** 发货状态 order_delivery_status */
|
||||||
|
DELIVERY("delivery"),
|
||||||
|
|
||||||
|
/** 开票状态 order_invoice_status */
|
||||||
|
INVOICE("invoice"),
|
||||||
|
|
||||||
|
/** 回款比例 order_payment_rate */
|
||||||
|
PAYMENT("payment");
|
||||||
|
|
||||||
|
private final String code;
|
||||||
|
|
||||||
|
ContractOrderStatusTypeEnum(String code) {
|
||||||
|
this.code = code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static ContractOrderStatusTypeEnum getByCode(String code) {
|
||||||
|
if (StringUtils.isBlank(code)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
for (ContractOrderStatusTypeEnum item : values()) {
|
||||||
|
if (item.code.equalsIgnoreCase(code.trim())) {
|
||||||
|
return item;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue