fix:十二分制-积分流水
This commit is contained in:
@@ -44,4 +44,13 @@ public enum JoinModeEnum {
|
||||
public static boolean isFranchise(Integer code) {
|
||||
return code == FRANCHISE_DEPARTMENT.code || code == AFFILIATES.code;
|
||||
}
|
||||
|
||||
public static String getDescByCode(Integer code) {
|
||||
for (JoinModeEnum e : JoinModeEnum.values()) {
|
||||
if (e.getCode() == code) {
|
||||
return e.desc;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
package com.cool.store.enums.master;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/8/6 16:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
public enum BrandTypeEnum {
|
||||
|
||||
JP(1, "正新鸡排"),
|
||||
SMZ(2, "正新三明治"),
|
||||
ZSJ(3, "正烧记"),
|
||||
MX(4, "大鼓米线"),
|
||||
CXM(5, "串小妹"),
|
||||
MZG(6, "茂掌柜");
|
||||
|
||||
;
|
||||
private Integer code;
|
||||
|
||||
private String desc;
|
||||
|
||||
BrandTypeEnum(Integer code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public static Integer getCodeByDesc(String desc) {
|
||||
for (BrandTypeEnum value : values()) {
|
||||
if (value.getDesc().equals(desc)) {
|
||||
return value.getCode();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static String getDescByCode(Integer code) {
|
||||
for (BrandTypeEnum value : values()) {
|
||||
if (value.getCode().equals(code)) {
|
||||
return value.getDesc();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -15,16 +15,18 @@ import lombok.Getter;
|
||||
@AllArgsConstructor
|
||||
public enum TpFormTypeEnum {
|
||||
|
||||
REWARD(0, "加分申请单"),
|
||||
WARNING(1, "警告书"),
|
||||
PENALTY(2, "处罚书"),
|
||||
APPEAL(3, "复议申请单"),
|
||||
REWARD(0, "加分申请单", "加分申请单"),
|
||||
WARNING(1, "警告书", "惩处申请单"),
|
||||
PENALTY(2, "处罚书", "惩处申请单"),
|
||||
APPEAL(3, "复议申请单", "复议申请单"),
|
||||
;
|
||||
|
||||
private final Integer type;
|
||||
|
||||
private final String msg;
|
||||
|
||||
private final String alias;
|
||||
|
||||
public static String getMsgByType(Integer type) {
|
||||
for (TpFormTypeEnum value : values()) {
|
||||
if (value.type.equals(type)) {
|
||||
|
||||
Reference in New Issue
Block a user