Fancy
2024-08-29 41e833e928e235afe2023398b1d5e8d35c47ded5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.dy.pmsProduct.order;
 
public enum OrderStatusEnum {
    //枚举, 状态:正常(1) 暂停(0) 结束(-1)
    NORMAL(1,"正常"),
    PAUSE(0,"暂停"),
    END(-1,"结束");
    private int code;
    private String name;
 
    OrderStatusEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }
 
    public int getCode() {
        return code;
    }
 
    public String getName() {
        return name;
    }
}