package com.ruoyi.asset.constant;

import com.ruoyi.common.utils.StringUtils;

/**
 * 盘点结果
 *
 * @author Yangk
 */
public final class InventoryResult
{
    /** 正常 */
    public static final String NORMAL = "NORMAL";
    /** 盘盈 */
    public static final String SURPLUS = "SURPLUS";
    /** 盘亏 */
    public static final String LOSS = "LOSS";
    /** 位置不符 */
    public static final String LOCATION_ERROR = "LOCATION_ERROR";

    public static boolean isValid(String value)
    {
        return StringUtils.equalsAny(value, NORMAL, SURPLUS, LOSS, LOCATION_ERROR);
    }

    public static boolean isExpectedItemResult(String value)
    {
        return StringUtils.equalsAny(value, NORMAL, LOSS, LOCATION_ERROR);
    }

    private InventoryResult()
    {
    }
}
