提交 | 用户 | age
|
1bfb1b
|
1 |
package com.hz.his.constant; |
F |
2 |
|
|
3 |
/** |
|
4 |
* 活动优惠类型 |
|
5 |
* @USER: fhx |
|
6 |
* @DATE: 2024/5/8 |
|
7 |
**/ |
|
8 |
public class ActivityPreferentialConstants { |
|
9 |
|
|
10 |
/** 优惠类型 - 降价 */ |
|
11 |
public static final String TYPE_PRICE_REDUCTION = "price_reduction"; |
|
12 |
/** 优惠类型 - 赠送优惠券 */ |
|
13 |
public static final String TYPE_GIFT_COUPON = "gift_coupon"; |
|
14 |
/** 优惠类型 - 赠送积分 */ |
|
15 |
public static final String TYPE_GIFT_INTEGRAL = "gift_integral"; |
|
16 |
/** 优惠类型 - 折扣 */ |
|
17 |
public static final String TYPE_DISCOUNT = "discount"; |
|
18 |
/** 优惠类型 - 赠送项目 */ |
|
19 |
public static final String TYPE_GIFT_PROJECT = "gift_project"; |
|
20 |
|
|
21 |
|
|
22 |
/** 转换优化类型中文 */ |
|
23 |
public static String changeTypeCn(String type){ |
|
24 |
switch (type){ |
|
25 |
case TYPE_PRICE_REDUCTION: return "降价"; |
|
26 |
case TYPE_GIFT_COUPON: return "赠送优惠券"; |
|
27 |
case TYPE_GIFT_INTEGRAL: return "赠送积分"; |
|
28 |
case TYPE_DISCOUNT: return "打折"; |
|
29 |
case TYPE_GIFT_PROJECT: return "赠送项目"; |
|
30 |
default: return "未知"; |
|
31 |
} |
|
32 |
} |
|
33 |
} |