refactor(trade): 优化 BrokerageRecordBizTypeEnum 类中的代码
- 将 mapToInt 方法替换为 map 方法,以提高代码可读性 - 保留原有功能不变,仅对代码实现进行优化
This commit is contained in:
parent
c270d1e2b8
commit
5080d10f23
@ -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);
|
||||
|
||||
/**
|
||||
* 类型
|
||||
|
Loading…
Reference in New Issue
Block a user