|
@@ -343,9 +343,10 @@ public class WeChatProfitSharingService {
|
|
|
List<AppProfitSharingInfo> appProfitSharingInfos = appProfitSharingInfoMapper.selectList(Wrappers.lambdaQuery(AppProfitSharingInfo.class).eq(AppProfitSharingInfo::getOrderId,
|
|
|
appOrder.getId()));
|
|
|
|
|
|
- List<AppProfitSharingInfo> partyFunding = appProfitSharingInfos.stream().filter(e -> e.getType() == 2).collect(Collectors.toList());
|
|
|
+ List<AppProfitSharingInfo> receivers = appProfitSharingInfos.stream().filter(e -> e.getType() == 1).collect(Collectors.toList());
|
|
|
+// List<AppProfitSharingInfo> partyFunding = appProfitSharingInfos.stream().filter(e -> e.getType() == 2).collect(Collectors.toList());
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("sub_mchid", partyFunding.get(0).getMchId());
|
|
|
+ map.put("sub_mchid", receivers.get(0).getMchId());
|
|
|
map.put("transaction_id", appOrder.getTransactionId());
|
|
|
|
|
|
String params = WechatPayV3Utils.formatUrlParam(map);
|