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

/**
 * 草畜失衡预警常量（独立表 {@code biz_grass_livestock_imbalance_warning}）。
 */
public final class GrassLivestockImbalanceWarningRules
{
    public static final String DATA_SOURCE_FAMILY_RANCH = "family_ranch";

    public static final String DATA_SOURCE_FARMER_HOUSEHOLD = "farmer_household";

    public static final String DATA_SOURCE_LARGE_LIVESTOCK_FARMER = "large_livestock_farmer";

    public static final String FAMILY_RANCH_SOURCE_PREFIX = "FR-";

    public static final String FARMER_HOUSEHOLD_SOURCE_PREFIX = "FH-";

    public static final String LARGE_LIVESTOCK_FARMER_SOURCE_PREFIX = "LLF-";

    public static final String MSG_DATE_RANGE_INVALID = "开始日期不能晚于结束日期";

    public static final String MSG_NOT_FOUND = "预警记录不存在";

    private GrassLivestockImbalanceWarningRules()
    {
    }

    public static String familyRanchSourceKey(Long ranchId)
    {
        return FAMILY_RANCH_SOURCE_PREFIX + ranchId;
    }

    public static String farmerHouseholdSourceKey(Long householdId)
    {
        return FARMER_HOUSEHOLD_SOURCE_PREFIX + householdId;
    }

    public static String largeLivestockFarmerSourceKey(Long farmerId)
    {
        return LARGE_LIVESTOCK_FARMER_SOURCE_PREFIX + farmerId;
    }
}
