Commit 8a6e2d57 by xiaoer.li@freemud.com

增加混合支付开关

parent 80914e08
......@@ -168,7 +168,10 @@ public class OrderServiceImpl implements Orderservice {
private String cloudPrintQueue;
@Value("${mq.cloud_print_exchange}")
private String cloud_print_exchange;
@Value("${svcSwith}")
private Boolean svcSwitch;
@Value("${partnerId}")
private String partnerId;
@Autowired
private AssortmentCloudPrinterManager cloudPrinterManager;
......@@ -2316,7 +2319,8 @@ public class OrderServiceImpl implements Orderservice {
OrderPayResponse orderPayResponse = new OrderPayResponse();
tigger = true;
//混合支付
if (tigger && StringUtils.isNotBlank(channel)) {
//partnerId.contains()
if (svcSwitch && partnerId.contains(orderBean.getCompanyId()) && tigger && StringUtils.isNotBlank(channel)) {
log.info("混合支付:");
String partnerPayOvertime = this.getPartnerPayOvertime(orderBean.getCompanyId());
orderPayResponse = comPayOrder(cardCode,orderBean,paymentRequest,partnerPayOvertime,totalAmount.intValue(),channel,storeId,LogThreadLocal.getTrackingNo());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment