Commit ca904c57 by huiyang.chen

刷新接口返回交易号

parent e1e4af04
...@@ -991,6 +991,12 @@ public class OrderServiceImpl implements Orderservice { ...@@ -991,6 +991,12 @@ public class OrderServiceImpl implements Orderservice {
responseMap.put("orderStatus", orderViewStatusDesc.getOrderStatus()); responseMap.put("orderStatus", orderViewStatusDesc.getOrderStatus());
responseMap.put("takeCode",""); responseMap.put("takeCode","");
responseMap.put("queueIndex",""); responseMap.put("queueIndex","");
String extInfo = orderBean.getExtInfo();
OrderExtInfoDto orderExtInfoDto = null;
if (StringUtils.isNotBlank(extInfo)) {
orderExtInfoDto = gson.fromJson(extInfo, OrderExtInfoDto.class);
}
responseMap.put("payVoucher",orderExtInfoDto != null ? orderExtInfoDto.getPayTransId() : "");
//非外卖单才获取取餐码和排队人数 //非外卖单才获取取餐码和排队人数
if (!OrderType.TAKE_OUT.getCode().equals(orderBean.getType()) ){ if (!OrderType.TAKE_OUT.getCode().equals(orderBean.getType()) ){
if (!(OrderStatus.TAKE_ORDER.getCode().equals(orderBean.getStatus()) if (!(OrderStatus.TAKE_ORDER.getCode().equals(orderBean.getStatus())
......
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