refactor(trade): 优化 BrokerageRecordBizTypeEnum 类中的代码

- 将 mapToInt 方法替换为 map 方法,以提高代码可读性
- 保留原有功能不变,仅对代码实现进行优化
This commit is contained in:
aikai 2025-04-23 10:48:24 +08:00
parent c270d1e2b8
commit 5080d10f23

View File

@ -20,7 +20,7 @@ public enum BrokerageRecordBizTypeEnum implements ArrayValuable<Integer> {
WITHDRAW_REJECT(3, "提现申请驳回", "提现申请驳回,返还佣金 {}", true),
;
public static final Integer[] ARRAYS = Arrays.stream(values()).mapToInt(BrokerageRecordBizTypeEnum::getType).toArray(Integer[]::new);
public static final Integer[] ARRAYS = Arrays.stream(values()).map(BrokerageRecordBizTypeEnum::getType).toArray(Integer[]::new);
/**
* 类型