package com.ruoyi.web.modules.diagnosis.support;

/**
 * 机构预约状态展示名（登记制三态）。
 */
public final class OrgAppointmentStatusResolver
{
    private OrgAppointmentStatusResolver()
    {
    }

    public static String resolveLabel(Integer status)
    {
        if (status == null)
        {
            return "";
        }
        switch (status)
        {
            case ServiceAppointmentRules.STATUS_BOOKED:
                return "已预约";
            case ServiceAppointmentRules.STATUS_CANCELLED:
                return "已取消";
            case ServiceAppointmentRules.STATUS_COMPLETED:
                return "已完成";
            default:
                return "";
        }
    }
}
