|
@@ -377,19 +377,28 @@ public class WorkerLogic {
|
|
|
|
|
|
CurrentCompanyWechat currentCompanyWechat = commonLogic.getCurrentCompanyWechat();
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
String source = StringUtil.isEmpty(commonLogic.getSource())?"B":commonLogic.getSource();
|
|
|
|
|
|
PayDetail payDetail = new PayDetail();
|
|
|
|
|
|
PolicyOrder policyOrder = policyOrderService.getById(policyOrderId);
|
|
|
|
|
|
+ AdminWebsit adminWebsit = adminWebsitService.getById(policyOrder.getWebsitId());
|
|
|
+
|
|
|
+ if (StringUtil.isEmpty(adminWebsit.getPayWorkerCodeId()))
|
|
|
+ throw new RemoteServiceException("网点支付配置未配置");
|
|
|
+
|
|
|
if (source.equals("B")) {
|
|
|
payDetail = wechatLogic.paymentWebsitH5(policyOrder.getId(), policyOrder.getPayAmount(), currentCompanyWechat.getUser().getOpenId(),
|
|
|
- "N", ip, currentCompanyWechat.getCompanyWechatId());
|
|
|
+ "N", ip, adminWebsit.getPayInsureCodeId());
|
|
|
} else {
|
|
|
payDetail = wechatLogic.payment(policyOrder.getId(), policyOrder.getPayAmount(),
|
|
|
currentCompanyWechat.getUser().getOpenId(),
|
|
|
- "N", ip, currentCompanyWechat.getCompanyWechatId(), true);
|
|
|
+ "N", ip, adminWebsit.getPayInsureCodeId(), true);
|
|
|
}
|
|
|
|
|
|
return payDetail;
|