首页>代码>基于SpringBoot、MyBatis开发的网上商城系统,包括管理后台>/newbee-mall/src/main/java/ltd/newbee/mall/common/NewBeeMallCategoryLevelEnum.java
package ltd.newbee.mall.common;

/**
 * @author 13
 * @apiNote 分类级别
 */
public enum NewBeeMallCategoryLevelEnum {

    DEFAULT(0, "ERROR"),
    LEVEL_ONE(1, "一级分类"),
    LEVEL_TWO(2, "二级分类"),
    LEVEL_THREE(3, "三级分类");

    private int level;

    private String name;

    NewBeeMallCategoryLevelEnum(int level, String name) {
        this.level = level;
        this.name = name;
    }

    public static NewBeeMallCategoryLevelEnum getNewBeeMallOrderStatusEnumByLevel(int level) {
        for (NewBeeMallCategoryLevelEnum newBeeMallCategoryLevelEnum : NewBeeMallCategoryLevelEnum.values()) {
            if (newBeeMallCategoryLevelEnum.getLevel() == level) {
                return newBeeMallCategoryLevelEnum;
            }
        }
        return DEFAULT;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
最近下载更多
啦啦啦嘿嘿嘿  LV5 4月2日
zolscy  LV12 3月24日
2429449458  LV2 1月25日
lilong007  LV20 2023年12月30日
1986王志飞  LV6 2023年12月28日
薛皓柏  LV2 2023年12月18日
ゆ 、 Hurt°  LV2 2023年12月9日
niceeeee  LV3 2023年11月20日
阿桐吖  LV2 2023年11月18日
java小书童  LV17 2023年7月27日
最近浏览更多
xujiarui4 昨天
暂无贡献等级
hedyyy  LV3 前天
gdt234  LV3 前天
akittyboy  LV9 4月23日
860421  LV3 4月18日
yeanan  LV1 4月12日
Luck_ZDM  LV11 4月12日
Admin0098  LV2 4月3日
denliv_hui  LV13 4月1日
森sdfgf  LV8 3月28日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友