crm:code review 客户配置

This commit is contained in:
YunaiV
2023-11-26 19:57:40 +08:00
parent 18c8a11a89
commit f766474ff4
15 changed files with 33 additions and 29 deletions

View File

@ -65,4 +65,5 @@ public interface ErrorCodeConstants {
// ========== 客户公海规则设置 1_020_011_000 ==========
ErrorCode CUSTOMER_LIMIT_CONFIG_NOT_EXISTS = new ErrorCode(1_020_012_000, "客户限制配置不存在");
}

View File

@ -13,7 +13,7 @@ import java.util.Arrays;
*/
@Getter
@AllArgsConstructor
public enum LimitConfigTypeEnum implements IntArrayValuable {
public enum CrmCustomerLimitConfigTypeEnum implements IntArrayValuable {
/**
* 拥有客户数限制
@ -25,7 +25,7 @@ public enum LimitConfigTypeEnum implements IntArrayValuable {
CUSTOMER_LOCK_LIMIT(2, "锁定客户数限制"),
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(LimitConfigTypeEnum::getCode).toArray();
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(CrmCustomerLimitConfigTypeEnum::getCode).toArray();
/**
* 状态
@ -40,4 +40,5 @@ public enum LimitConfigTypeEnum implements IntArrayValuable {
public int[] array() {
return ARRAYS;
}
}