Commit ffe105b9 by xiaoer.li@freemud.com

fix 非空判断

parent 17fcb120
......@@ -1034,17 +1034,14 @@ public class OrderAdapter {
responseVo.setPayVoucher(orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : "");
responseVo.setPayCreateTime(orderExtInfoDto != null ? orderExtInfoDto.getPayDate() : "");
responseVo.setPayChannel(ordersBean.getPayChannel());
if (ordersBean.getPayChannel() != null) {
if (StringUtils.isNotBlank(ordersBean.getPayChannel())) {
if ("10102".equals(ordersBean.getPayChannel())) {
responseVo.setOrderPayType("储值卡支付");
}
else if (PayChannel.ALIPAY.getCode().equals(ordersBean.getPayChannel())) {
} else if (PayChannel.ALIPAY.getCode().equals(ordersBean.getPayChannel())) {
responseVo.setOrderPayType("支付宝支付");
}
else if (PayChannel.WXPAY.getCode().equals(ordersBean.getPayChannel())) {
} else if (PayChannel.WXPAY.getCode().equals(ordersBean.getPayChannel())) {
responseVo.setOrderPayType("微信支付");
}
else {
} else {
responseVo.setOrderPayType("微信支付");
}
}
......
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