| | |
| | | /** |
| | | * ERP 采购订单来源类型枚举 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @RequiredArgsConstructor |
| | | @Getter |
| | | public enum ErpPurchaseOrderSourceTypeEnum implements ArrayValuable<Integer> { |
| | | |
| | | WORK_ORDER(1, "生产工单"); |
| | | WORK_ORDER(1, "生产工单"), |
| | | PRESALE(2, "预定任务"); |
| | | |
| | | public static final Integer[] ARRAYS = Arrays.stream(values()) |
| | | .map(ErpPurchaseOrderSourceTypeEnum::getType).toArray(Integer[]::new); |
| | |
| | | return ARRAYS; |
| | | } |
| | | |
| | | public static ErpPurchaseOrderSourceTypeEnum valueOf(Integer type) { |
| | | for (ErpPurchaseOrderSourceTypeEnum item : values()) { |
| | | if (item.type.equals(type)) { |
| | | return item; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | } |