feat 分账同步联调

This commit is contained in:
xxm1995
2024-04-03 16:01:46 +08:00
parent e9c50e41c4
commit a4883b9aae
13 changed files with 107 additions and 35 deletions

View File

@@ -34,6 +34,16 @@ public enum AllocationReceiverTypeEnum {
/** 名称 */
private final String name;
/**
* 根据编码查找
*/
public static AllocationReceiverTypeEnum findByCode(String code) {
return Arrays.stream(AllocationReceiverTypeEnum.values())
.filter(e -> e.getCode().equals(code))
.findFirst()
.orElseThrow(() -> new IllegalArgumentException("未找到对应的分账接收方类型"));
}
/** 微信支持类型 */
public static final List<AllocationReceiverTypeEnum> WECHAT_LIST = Collections.unmodifiableList(Arrays.asList(WX_PERSONAL, WX_MERCHANT));
/** 支付宝支持类型 */