mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 02:55:07 +08:00
【新增】回款计划-审批枚举类
【新增】回款计划-回款方式枚举类 【新增】回款计划-枚举类校验 【修改】回款计划-错误码调整 【修改】修改回款计划-创建逻辑,添加合同数据的校验
This commit is contained in:
@ -0,0 +1,61 @@
|
||||
package cn.iocoder.yudao.module.crm.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 流程审批状态枚举类
|
||||
* 0 未审核 1 审核通过 2 审核拒绝 3 审核中 4 已撤回
|
||||
* @author 赤焰
|
||||
*/
|
||||
public enum AuditStatusEnum implements IntArrayValuable {
|
||||
/**
|
||||
* 未审批
|
||||
*/
|
||||
AUDIT_NEW(0, "未审批"),
|
||||
/**
|
||||
* 审核通过
|
||||
*/
|
||||
AUDIT_FINISH(0, "审核通过"),
|
||||
/**
|
||||
* 审核拒绝
|
||||
*/
|
||||
AUDIT_REJECT(2, "审核拒绝"),
|
||||
/**
|
||||
* 审核中
|
||||
*/
|
||||
AUDIT_DOING(3, "审核中"),
|
||||
/**
|
||||
* 已撤回
|
||||
*/
|
||||
AUDIT_RETURN(4, "已撤回");
|
||||
|
||||
private final Integer value;
|
||||
private final String desc;
|
||||
|
||||
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(AuditStatusEnum::getValue).toArray();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param value
|
||||
* @param desc
|
||||
*/
|
||||
AuditStatusEnum(Integer value, String desc) {
|
||||
this.value = value;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int[] array() {
|
||||
return ARRAYS;
|
||||
}
|
||||
}
|
@ -21,9 +21,10 @@ public interface ErrorCodeConstants {
|
||||
// ========== 联系人管理 1-020-003-000 ==========
|
||||
ErrorCode CONTACT_NOT_EXISTS = new ErrorCode(1_020_003_000, "联系人不存在");
|
||||
|
||||
// TODO @liuhongfeng:错误码分段;
|
||||
ErrorCode RECEIVABLE_NOT_EXISTS = new ErrorCode(1_030_000_001, "回款管理不存在");
|
||||
// ========== 回款管理 1-020-004-000 ==========
|
||||
ErrorCode RECEIVABLE_NOT_EXISTS = new ErrorCode(1_020_004_000, "回款管理不存在");
|
||||
|
||||
ErrorCode RECEIVABLE_PLAN_NOT_EXISTS = new ErrorCode(1_040_000_001, "回款计划不存在");
|
||||
// ========== 合同管理 1-020-005-000 ==========
|
||||
ErrorCode RECEIVABLE_PLAN_NOT_EXISTS = new ErrorCode(1_020_005_000, "回款计划不存在");
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,8 @@
|
||||
package cn.iocoder.yudao.module.crm.enums;
|
||||
|
||||
/**
|
||||
* @author 赤焰
|
||||
*/
|
||||
|
||||
public enum ReturnTypeEnum {
|
||||
}
|
Reference in New Issue
Block a user