1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| package com.dsh.activity.enums;
|
| /**
| * 玩湃惠民卡订单类型枚举。
| *
| * @author Codex
| * @date 2026-09-04
| */
| public enum HuiminCardPaymentTypeEnum {
|
| /** 微信售卖 */
| WECHAT_SALE(1),
|
| /** 支付宝售卖 */
| ALIPAY_SALE(2),
|
| /** 后台录入的赠送卡 */
| GIFT(3);
|
| private final int code;
|
| HuiminCardPaymentTypeEnum(int code) {
| this.code = code;
| }
|
| /**
| * 获取订单类型编码。
| *
| * @return 订单类型编码
| */
| public int getCode() {
| return code;
| }
|
| /**
| * 判断订单类型是否为赠送。
| *
| * @param paymentType 订单类型编码
| * @return 赠送订单时返回 true
| */
| public static boolean isGift(Integer paymentType) {
| return Integer.valueOf(GIFT.code).equals(paymentType);
| }
| }
|
|