Commit 28610b62 by xiaoer.li@freemud.com

fix支付方式显示

parent fbf29115
...@@ -896,18 +896,33 @@ public class OrderAdapter { ...@@ -896,18 +896,33 @@ public class OrderAdapter {
responseVo.setPayVoucher(orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : ""); responseVo.setPayVoucher(orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : "");
responseVo.setPayCreateTime(orderExtInfoDto != null ? orderExtInfoDto.getPayDate() : ""); responseVo.setPayCreateTime(orderExtInfoDto != null ? orderExtInfoDto.getPayDate() : "");
responseVo.setPayChannel(ordersBean.getPayChannel()); responseVo.setPayChannel(ordersBean.getPayChannel());
if (ordersBean.getPayChannel() != null && "10102".equals(ordersBean.getPayChannel())) { if (ordersBean.getPayChannel() != null) {
responseVo.setOrderPayType("储值卡支付"); if ("10102".equals(ordersBean.getPayChannel())) {
} else if (ordersBean.getPayChannel() != null && PayChannel.ALIPAY.getCode().equals(ordersBean.getPayChannel())) { responseVo.setOrderPayType("储值卡支付");
responseVo.setOrderPayType("支付宝支付"); }
} else if (ordersBean.getPayChannel() != null && PayChannel.WXPAY.getCode().equals(ordersBean.getPayChannel())) { else if (PayChannel.ALIPAY.getCode().equals(ordersBean.getPayChannel())) {
responseVo.setOrderPayType("微信支付"); responseVo.setOrderPayType("支付宝支付");
} else { }
responseVo.setOrderPayType("微信支付"); else if (PayChannel.WXPAY.getCode().equals(ordersBean.getPayChannel())) {
responseVo.setOrderPayType("微信支付");
}
else {
responseVo.setOrderPayType("微信支付");
}
} }
if (OrderSourceType.ALIPAY.getCode().equals(ordersBean.getSource())) { else {
responseVo.setOrderPayType("支付宝支付"); if (OrderSourceType.ALIPAY.getCode().equals(ordersBean.getSource())) {
responseVo.setOrderPayType("支付宝支付");
}
else if(OrderSourceType.SAAS.getCode().equals(ordersBean.getSource())) {
responseVo.setOrderPayType("微信支付");
}
else {
responseVo.setOrderPayType("微信支付");
}
} }
//取餐码用日订单序号代替- v1.5.4变更为四位随机数 //取餐码用日订单序号代替- v1.5.4变更为四位随机数
responseVo.setTakeCode(ordersBean.getOtherCode()); responseVo.setTakeCode(ordersBean.getOtherCode());
responseVo.setAmount(ordersBean.getAmount()); responseVo.setAmount(ordersBean.getAmount());
......
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