|
|
@ -106,7 +106,7 @@ public class HnaPayServiceImpl implements HnaPayService { |
|
|
|
List<Long> businessIdList = cerePlatformShopList.stream().map(CerePlatformShop::getBusinessId).distinct().collect(Collectors.toList()); |
|
|
|
List<CerePlatformBusiness> cerePlatformBusinessList = cerePlatformBusinessService.getByIdList(businessIdList); |
|
|
|
for (CerePlatformBusiness cerePlatformBusiness : cerePlatformBusinessList) { |
|
|
|
if (StringUtils.isEmpty(cerePlatformBusiness.getXsPayId())) { |
|
|
|
if (StringUtils.isEmpty(cerePlatformBusiness.getHnaPayId())) { |
|
|
|
//校验商家是否注册新账通商户 |
|
|
|
throw new CoBusinessException("10000", "商家" + cerePlatformBusiness.getBusinessName() + "未进行支付信息认证,请联系管理员", ""); |
|
|
|
} |
|
|
@ -137,8 +137,8 @@ public class HnaPayServiceImpl implements HnaPayService { |
|
|
|
transForm.setBuyerId(""); |
|
|
|
transForm.setMerchantId(HnaPayConfig.MERCHANT_ID); |
|
|
|
String project = ContextUtil.getProject(); |
|
|
|
String xsPayId = cerePlatformBusinessDAO.findXsPayIdByProject(project); |
|
|
|
String merId = project.equals("0") ? HnaPayConfig.MERCHANT_ID : xsPayId; |
|
|
|
String hnaPayId = cerePlatformBusinessDAO.findHnaPayIdByProject(project); |
|
|
|
String merId = project.equals("0") ? HnaPayConfig.MERCHANT_ID : hnaPayId; |
|
|
|
//收款方id。即收款方的新账通id。 |
|
|
|
transForm.setReceiveUserId(merId); |
|
|
|
transForm.setBusinessType("03"); |
|
|
@ -198,7 +198,7 @@ public class HnaPayServiceImpl implements HnaPayService { |
|
|
|
} |
|
|
|
|
|
|
|
DivideAcctDtlVo divideAcctDtlVo = new DivideAcctDtlVo(); |
|
|
|
divideAcctDtlVo.setLedgerUserId(cerePlatformBusiness.getXsPayId()); |
|
|
|
divideAcctDtlVo.setLedgerUserId(cerePlatformBusiness.getHnaPayId()); |
|
|
|
divideAcctDtlVo.setAmount(String.valueOf(prodTotalAmount)); |
|
|
|
divideAcctDtlVos.add(divideAcctDtlVo); |
|
|
|
|
|
|
@ -296,7 +296,7 @@ public class HnaPayServiceImpl implements HnaPayService { |
|
|
|
List<Long> businessIdList = cerePlatformShopList.stream().map(CerePlatformShop::getBusinessId).distinct().collect(Collectors.toList()); |
|
|
|
List<CerePlatformBusiness> cerePlatformBusinessList = cerePlatformBusinessService.getByIdList(businessIdList); |
|
|
|
for (CerePlatformBusiness cerePlatformBusiness : cerePlatformBusinessList) { |
|
|
|
if(StringUtils.isEmpty(cerePlatformBusiness.getXsPayId())){ |
|
|
|
if(StringUtils.isEmpty(cerePlatformBusiness.getHnaPayId())){ |
|
|
|
throw new CoBusinessException("10000","商家" + cerePlatformBusiness.getBusinessName() + "未进行支付信息认证,请联系管理员", ""); |
|
|
|
} |
|
|
|
} |
|
|
@ -321,8 +321,8 @@ public class HnaPayServiceImpl implements HnaPayService { |
|
|
|
transForm.setPayLimit("1"); |
|
|
|
transForm.setMerchantId(HnaPayConfig.MERCHANT_ID); |
|
|
|
String project = ContextUtil.getProject(); |
|
|
|
String xsPayId = cerePlatformBusinessDAO.findXsPayIdByProject(project); |
|
|
|
String merId = project.equals("0") ? HnaPayConfig.MERCHANT_ID : xsPayId; |
|
|
|
String hnaPayId = cerePlatformBusinessDAO.findHnaPayIdByProject(project); |
|
|
|
String merId = project.equals("0") ? HnaPayConfig.MERCHANT_ID : hnaPayId; |
|
|
|
//收款方id。即收款方的新账通id。 |
|
|
|
transForm.setReceiveUserId(merId); |
|
|
|
transForm.setBusinessType("03"); |
|
|
|