package com.hz.his.constant; /** * 活动优惠类型 * @USER: fhx * @DATE: 2024/5/8 **/ public class ActivityPreferentialConstants { /** 优惠类型 - 降价 */ public static final String TYPE_PRICE_REDUCTION = "price_reduction"; /** 优惠类型 - 赠送优惠券 */ public static final String TYPE_GIFT_COUPON = "gift_coupon"; /** 优惠类型 - 赠送积分 */ public static final String TYPE_GIFT_INTEGRAL = "gift_integral"; /** 优惠类型 - 折扣 */ public static final String TYPE_DISCOUNT = "discount"; /** 优惠类型 - 赠送项目 */ public static final String TYPE_GIFT_PROJECT = "gift_project"; /** 转换优化类型中文 */ public static String changeTypeCn(String type){ switch (type){ case TYPE_PRICE_REDUCTION: return "降价"; case TYPE_GIFT_COUPON: return "赠送优惠券"; case TYPE_GIFT_INTEGRAL: return "赠送积分"; case TYPE_DISCOUNT: return "打折"; case TYPE_GIFT_PROJECT: return "赠送项目"; default: return "未知"; } } }