mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-23 07:25:07 +08:00
@ -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(1, "审核通过"),
|
||||
/**
|
||||
* 审核拒绝
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
@ -11,5 +11,6 @@ public interface DictTypeConstants {
|
||||
String CRM_CUSTOMER_INDUSTRY = "crm_customer_industry"; // CRM 客户所属行业
|
||||
String CRM_CUSTOMER_LEVEL = "crm_customer_level"; // CRM 客户等级
|
||||
String CRM_CUSTOMER_SOURCE = "crm_customer_source"; // CRM 客户来源
|
||||
String CRM_RECEIVABLE_CHECK_STATUS = "crm_receivable_check_status"; // CRM 审批状态
|
||||
|
||||
}
|
||||
|
@ -26,10 +26,11 @@ 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, "回款计划不存在");
|
||||
|
||||
// ========== 客户管理 1_020_006_000 ==========
|
||||
ErrorCode CUSTOMER_NOT_EXISTS = new ErrorCode(1_020_006_000, "客户不存在");
|
||||
|
@ -0,0 +1,8 @@
|
||||
package cn.iocoder.yudao.module.crm.enums;
|
||||
|
||||
/**
|
||||
* @author 赤焰
|
||||
*/
|
||||
|
||||
public enum ReturnTypeEnum {
|
||||
}
|
Reference in New Issue
Block a user