Commit a7d196c5 by 胡超

AfterSalesStatus

parent 2dbe50bf
......@@ -12,6 +12,8 @@
*/
package com.freemud.application.sdk.api.ordercenter.enums;
import java.util.Arrays;
public enum AfterSalesStatus {
PENDING(1,"待处理"),
......@@ -45,4 +47,11 @@ public enum AfterSalesStatus {
this.index = index;
this.name = name;
}
public static AfterSalesStatus getByIndex(byte index) {
return Arrays.stream(AfterSalesStatus.values())
.filter(e -> e.index == index)
.findFirst()
.orElse(null);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment