feat: 调整客户表的字段

This commit is contained in:
Wanwan
2023-10-29 00:33:42 +08:00
parent c18f5baa4b
commit 3af9688383
9 changed files with 173 additions and 26 deletions

View File

@ -0,0 +1,15 @@
package cn.iocoder.yudao.module.crm.enums;
/**
* System 字典类型的枚举类
*
* @author 芋道源码
*/
public interface DictTypeConstants {
// ========== CRM 模块 ==========
String CRM_CUSTOMER_INDUSTRY = "crm_customer_industry"; // CRM 客户所属行业
String CRM_CUSTOMER_LEVEL = "crm_customer_level"; // CRM 客户等级
String CRM_CUSTOMER_SOURCE = "crm_customer_source"; // CRM 客户来源
}

View File

@ -0,0 +1,38 @@
package cn.iocoder.yudao.module.crm.enums.customer;
import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
/**
* CRM 客户等级
*
* @author Wanwan
*/
@Getter
@AllArgsConstructor
public enum CrmCustomerLevelEnum implements IntArrayValuable {
IMPORTANT(1, "A (重点客户)"),
GENERAL(2, "B (普通客户)"),
LOW_PRIORITY(3, "C (非优先客户)");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmCustomerLevelEnum::getStatus).toArray();
/**
* 状态
*/
private final Integer status;
/**
* 状态名
*/
private final String name;
@Override
public int[] array() {
return ARRAYS;
}
}