feat:主数据同步
This commit is contained in:
@@ -11,17 +11,19 @@ import java.util.Objects;
|
||||
public enum PaymentMethodEnum {
|
||||
|
||||
//1.月付 2.季付 3.半年付 4.年付
|
||||
PAYMENT_METHOD_1(1, "月付"),
|
||||
PAYMENT_METHOD_2(2, "季付"),
|
||||
PAYMENT_METHOD_3(3, "半年付"),
|
||||
PAYMENT_METHOD_4(4, "年付"),
|
||||
PAYMENT_METHOD_1(1, "月付",1),
|
||||
PAYMENT_METHOD_2(2, "季付",3),
|
||||
PAYMENT_METHOD_3(3, "半年付",6),
|
||||
PAYMENT_METHOD_4(4, "年付",12),
|
||||
;
|
||||
|
||||
private Integer code;
|
||||
|
||||
private String desc;
|
||||
|
||||
PaymentMethodEnum(Integer code, String desc) {
|
||||
private Integer totalMonth;
|
||||
|
||||
PaymentMethodEnum(Integer code, String desc,Integer totalMonth) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
@@ -34,6 +36,9 @@ public enum PaymentMethodEnum {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public Integer getTotalMonth() {
|
||||
return totalMonth;
|
||||
}
|
||||
|
||||
public static PaymentMethodEnum getByCode(Integer code) {
|
||||
if(Objects.isNull(code)){
|
||||
|
||||
Reference in New Issue
Block a user