|
@@ -116,7 +116,7 @@ public class PayServiceImpl implements PayService {
|
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
- String merNo = "0";
|
|
|
+ String merNo = hfMerchantConfig.getPlatformPayeeMemberId();
|
|
|
|
|
|
StudentPaymentRouteOrder studentPaymentRouteOrder = new StudentPaymentRouteOrder();
|
|
|
studentPaymentRouteOrder.setOrderNo(orderNo);
|
|
@@ -533,20 +533,14 @@ public class PayServiceImpl implements PayService {
|
|
|
String routeScale = paymentConfig.getRouteScale();
|
|
|
List<RouteScaleDto> routeScaleDtos = JSON.parseArray(routeScale, RouteScaleDto.class);
|
|
|
List<Integer> organIds = routeScaleDtos.stream().map(RouteScaleDto::getOrganId).collect(Collectors.toList());
|
|
|
- List<SysPaymentConfig> paymentConfigByOrganIds = sysPaymentConfigService.findPaymentConfigByOrganIds(organIds);
|
|
|
+ List<SysPaymentConfig> paymentConfigByOrganIds = sysPaymentConfigService.findPaymentConfigByOrganIds(paymentChannel, organIds);
|
|
|
for (RouteScaleDto routeScaleDto : routeScaleDtos) {
|
|
|
routeScaleDto.setPayType(paymentConfig.getPayType());
|
|
|
routeScaleDto.setAmount(amount);
|
|
|
for (SysPaymentConfig paymentConfigByOrganId : paymentConfigByOrganIds) {
|
|
|
if (!paymentConfigByOrganId.getOrganId().equals(routeScaleDto.getOrganId())) continue;
|
|
|
|
|
|
- HfMember hfMember = hfMemberDao.getByOrganId(paymentConfigByOrganId.getOrganId(), paymentConfigByOrganId.getPayType().getCode());
|
|
|
-
|
|
|
- if(hfMember == null) {
|
|
|
- throw new BizException("[{}]分部[{}]没有配置商户号", paymentConfigByOrganId.getPayType().getCode(), paymentConfigByOrganId.getOrganId());
|
|
|
- }
|
|
|
-
|
|
|
- routeScaleDto.setMerNo(hfMember.getMemberId());
|
|
|
+ routeScaleDto.setMerNo(paymentConfigByOrganId.getHfMerNo());
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -851,7 +845,7 @@ public class PayServiceImpl implements PayService {
|
|
|
String typeRouteScale = paymentConfig.getTypeRouteScale();
|
|
|
List<RouteScaleDto> routeScaleDtos = JSON.parseArray(typeRouteScale, RouteScaleDto.class);
|
|
|
List<Integer> organIds = routeScaleDtos.stream().map(RouteScaleDto::getOrganId).collect(Collectors.toList());
|
|
|
- List<SysPaymentConfig> paymentConfigByOrganIds = sysPaymentConfigService.findPaymentConfigByOrganIds(organIds);
|
|
|
+ List<SysPaymentConfig> paymentConfigByOrganIds = sysPaymentConfigService.findPaymentConfigByOrganIds(paymentChannel, organIds);
|
|
|
|
|
|
long serviceCount = routeScaleDtos.stream().filter(e -> e.getFeeType().equals(FeeTypeEnum.SERVICE)).count();
|
|
|
long sellCount = routeScaleDtos.stream().filter(e -> e.getFeeType().equals(FeeTypeEnum.SELL)).count();
|
|
@@ -906,20 +900,11 @@ public class PayServiceImpl implements PayService {
|
|
|
continue;
|
|
|
}*/
|
|
|
|
|
|
- HfMember hfMember = null;
|
|
|
-
|
|
|
for (SysPaymentConfig paymentConfigByOrganId : paymentConfigByOrganIds) {
|
|
|
|
|
|
if (!paymentConfigByOrganId.getOrganId().equals(routeScaleDto.getOrganId())) continue;
|
|
|
|
|
|
- hfMember = hfMemberDao.getByOrganId(paymentConfigByOrganId.getOrganId(), paymentConfig.getPayType().getCode());
|
|
|
-
|
|
|
- if(hfMember == null) {
|
|
|
- throw new BizException("[{}]分部[{}]没有配置商户号", paymentConfig.getPayType().getCode(), paymentConfigByOrganId.getOrganId());
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- routeScaleDto.setMerNo(hfMember.getMemberId());
|
|
|
+ routeScaleDto.setMerNo(paymentConfigByOrganId.getHfMerNo());
|
|
|
|
|
|
}
|
|
|
}
|