门店装修属性增加

This commit is contained in:
shuo.wang
2025-07-24 16:05:09 +08:00
parent b1156007ff
commit 0f17ecc0c5
6 changed files with 67 additions and 13 deletions

View File

@@ -287,6 +287,8 @@ public enum ErrorCodeEnum {
PRODUCTS_DISCARDED(1511034,"产品已报销,无法操作",null),
PRODUCTS_SALES_COMPLETED(1511034,"含有销售完成的产品,无法批量报销",null),
STORE_IS_EXIST(1511035,"该门店已存在",null),
SHOP_DECORATION_ATTRIBUTES_IS_NULL(1511036,"门店装修属性为空,请到加盟合同签约阶段填写",null)
;

View File

@@ -0,0 +1,37 @@
package com.cool.store.enums;
/**
* @Author: WangShuo
* @Date: 2025/07/24/15:54
* @Version 1.0
* @注释:
*/
public enum ShopDecorationAttributesEnum {
//0-新开店 1-老店新开 2-老店翻新 3-迁址
NEW_OPEN(0,"新开店"),
OLD_NEW_OPEN(1,"老店新开"),
RENEWAL(2,"老店翻新"),
RELOCATION(3,"迁址");
private Integer code;
private String desc;
ShopDecorationAttributesEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public Integer getCode() {
return code;
}
public String getDesc() {
return desc;
}
public static String getDescByCode(Integer code) {
for (ShopDecorationAttributesEnum value : ShopDecorationAttributesEnum.values()) {
if (value.getCode().equals(code)) {
return value.getDesc();
}
}
return null;
}
}