feat:预炸

This commit is contained in:
苏竹红
2025-06-21 18:39:29 +08:00
parent 2571ed2956
commit 9147a67b07
42 changed files with 2909 additions and 1 deletions

View File

@@ -0,0 +1,50 @@
package com.cool.store.enums;
/**
* @author su'zh
* 审批操作类型枚举
*/
public enum AuditOperationTypeEnum {
/**
* 申请操作
*/
APPLY(1, "申请"),
/**
* 审批通过
*/
APPROVE(2, "审批成功"),
/**
* 审批拒绝
*/
REJECT(3, "审批失败");
private final Integer code;
private final String desc;
AuditOperationTypeEnum(Integer code, String desc) {
this.code = code;
this.desc = desc;
}
public Integer getCode() {
return code;
}
public String getDesc() {
return desc;
}
/**
* 根据code获取枚举
*/
public static AuditOperationTypeEnum getByCode(Integer code) {
for (AuditOperationTypeEnum value : values()) {
if (value.getCode().equals(code)) {
return value;
}
}
return null;
}
}

View File

@@ -275,6 +275,10 @@ public enum ErrorCodeEnum {
XGJ_COLLECTION_STATUS_COMPLETE(1511027,"新管家收费状态已完成,请确认!",null),
PAY_AMOUNT_ERROR(1511028,"缴费金额不能大于未缴金额",null),
PRE_FRY_PRODUCT_NOT_EXIST(1511029,"预炸品不存在",null),
PRE_FRY_RECORD_EXIST(1511030,"当前门店已存在同类型预炸资质申请记录",null),
PRE_FRY_APPLY_NOT_EXIST(1511030,"预炸资质申请信息不存在",null),
;