TradingStateEnum.java
848 Bytes
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
package com.sl.ms.trade.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import com.sl.transport.common.enums.BaseEnum;
/**
* 交易单状态枚举
*
* @author zzj
* @version 1.0
*/
public enum TradingStateEnum implements BaseEnum {
DFK(1, "待付款"),
FKZ(2, "付款中"),
FKSB(3, "付款失败"),
YJS(4, "已结算(已付款)"),
QXDD(5, "取消订单"),
MD(6, "免单"),
GZ(7, "挂账");
@EnumValue
@JsonValue
private Integer code;
private String value;
TradingStateEnum(Integer code, String value) {
this.code = code;
this.value = value;
}
@Override
public Integer getCode() {
return this.code;
}
@Override
public String getValue() {
return this.value;
}
}