package com.jeesharp.business.modules.pay.paysubmerchantapplyment.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 特约商户进件本地状态（草稿与已提交区分）。
 *
 * @author jeesharp
 * @since 2026-05-26
 */
@Getter
@AllArgsConstructor
public enum PaySubMerchantApplyLocalStatusEnum {

    DRAFT("DRAFT", "草稿"),
    SUBMITTED("SUBMITTED", "已提交微信");

    private final String value;
    private final String desc;

    public static String getDescByValue(String value) {
        if (value == null) {
            return "";
        }
        for (PaySubMerchantApplyLocalStatusEnum e : values()) {
            if (e.getValue().equals(value)) {
                return e.getDesc();
            }
        }
        return value;
    }
}
