code review:crm 客户模块的实现

This commit is contained in:
YunaiV
2023-10-29 17:38:59 +08:00
parent 0657c357bf
commit fe50356ae8
11 changed files with 48 additions and 176 deletions

View File

@ -1,7 +1,7 @@
package cn.iocoder.yudao.module.crm.enums;
/**
* System 字典类型的枚举类
* CRM 字典类型的枚举类
*
* @author 芋道源码
*/

View File

@ -15,12 +15,13 @@ import java.util.Arrays;
@AllArgsConstructor
public enum CrmCustomerLevelEnum implements IntArrayValuable {
IMPORTANT(1, "A (重点客户)"),
GENERAL(2, "B (普通客户)"),
LOW_PRIORITY(3, "C (非优先客户)");
IMPORTANT(1, "A重点客户"),
GENERAL(2, "B普通客户"),
LOW_PRIORITY(3, "C非优先客户");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmCustomerLevelEnum::getStatus).toArray();
// TODO @wanwan这里的 status 字段,可以考虑改成 level
/**
* 状态
*/