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

/**
 * 畜牧监控枚举。
 */
public final class LivestockMonitorRules
{
    public static final int OWNER_TYPE_PASTURE = 1;

    public static final int OWNER_TYPE_TRADE_MARKET = 2;

    public static final String DEL_FLAG_NORMAL = "0";

    public static final String DEL_FLAG_DELETED = "2";

    public static final int OWNER_OPTIONS_LIMIT = 200;

    private LivestockMonitorRules()
    {
    }

    public static String ownerTypeName(Integer ownerType)
    {
        if (ownerType == null)
        {
            return "";
        }
        if (ownerType == OWNER_TYPE_PASTURE)
        {
            return "养殖主体";
        }
        if (ownerType == OWNER_TYPE_TRADE_MARKET)
        {
            return "交易市场";
        }
        return "";
    }

    public static boolean isOwnerTypeValid(Integer ownerType)
    {
        return ownerType != null
                && (ownerType == OWNER_TYPE_PASTURE || ownerType == OWNER_TYPE_TRADE_MARKET);
    }
}
