Authored by zhouxiang

设置订单号为父订单号

... ... @@ -67,6 +67,7 @@ public class FanliServiceImpl implements IFanliService, IOrderPushService {
Map<String, Object> param = Maps.newHashMap();
param.put("content", xmlData);
int i = 0;
logger.info("begin push order to fanli.xmlData is {}", xmlData);
//发送推送请求 retry 3次
while (i < 3) {
try {
... ... @@ -95,7 +96,7 @@ public class FanliServiceImpl implements IFanliService, IOrderPushService {
private void creatOrderLeaf(Element orderElement, OrderInfo orderInfo) {
orderElement.addElement("s_id").setText("690");
orderElement.addElement("order_id_parent").setText(String.valueOf(orderInfo.getParentOrderCode()));
orderElement.addElement("order_id").setText(String.valueOf(orderInfo.getOrderCode()));
orderElement.addElement("order_id").setText(String.valueOf(orderInfo.getParentOrderCode()));
orderElement.addElement("order_time").setText(DateUtil.date2String(new Date(Long.valueOf(orderInfo.getOrderTime()) * 1000), "yyyy-MM-dd HH:mm:ss"));
orderElement.addElement("uid").setText(orderInfo.getThirdUid());
orderElement.addElement("uname").setText(orderInfo.getThirdUid() + "@51fanli");
... ...