刘小明
2024-08-28 2c183f0f9d534e37dd69809f0eedc19fabea82e8
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;
    }
}