| | |
| | | /** |
| | | * CRM 销售报价状态枚举 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @RequiredArgsConstructor |
| | | @Getter |
| | | public enum CrmSaleQuotationStatusEnum implements ArrayValuable<Integer> { |
| | | |
| | | DRAFT(0, "草稿"), |
| | | PROCESS(1, "审批中"), |
| | | APPROVE(2, "审批通过"), |
| | | REJECT(3, "审批不通过"), |
| | | CANCEL(4, "已取消"), |
| | | VOID(5, "已作废"), |
| | | CONVERTED(10, "已转合同"); |
| | | |
| | | private final Integer status; |
| | |
| | | return ARRAYS; |
| | | } |
| | | |
| | | public static CrmSaleQuotationStatusEnum getByStatus(Integer status) { |
| | | return Arrays.stream(values()).filter(e -> e.getStatus().equals(status)).findFirst().orElse(null); |
| | | } |
| | | |
| | | } |