Authored by zhengwen.ge

update

... ... @@ -34,6 +34,16 @@ public class OrderInfo implements Serializable {
//平台(web/wap/app)
private String orderType;
private String isNew;
public String getIsNew() {
return isNew;
}
public void setIsNew(String isNew) {
this.isNew = isNew;
}
public String getMbrName() {
return mbrName;
}
... ...
... ... @@ -80,14 +80,15 @@ public class OrderUnionRest {
IOrderPushService pushService = SpringContextUtil.getBean("orderPushServiceImpl", IOrderPushService.class);
List<OrderInfo> orderInfoList = new ArrayList<>();
OrderInfo orderInfo = new OrderInfo();
orderInfo.setParentOrderCode("111");
orderInfo.setParentOrderCode("111224567231389");
orderInfo.setOrderTime(1482391381);
orderInfo.setPayment("1");
orderInfo.setOrderAmount(new BigDecimal(1));
orderInfo.setShippingCost(new BigDecimal(1));
orderInfo.setOrderStatus("1");
orderInfo.setOrderType("web");
orderInfo.setClientId("1010");
orderInfo.setClientId("3017");
orderInfo.setIsNew("Y");
List<OrdersGood> ordersGoods = new ArrayList<>();
for(int i = 0;i<1;i++){
OrdersGood ordersGood = new OrdersGood();
... ...
... ... @@ -50,6 +50,8 @@ public class OrderPushServiceImpl implements IOrderPushService{
param.put("orderShipCost",orderInfo.getShippingCost());
//订单来源平台,(web,wap,app)
param.put("orderType",orderInfo.getOrderType());
//是否是新客
param.put("isNew",orderInfo.getIsNew());
//商品最终支付金额
BigDecimal proRealPay = new BigDecimal(0);
//如果有多个则需要将多个商品进行分割
... ... @@ -125,13 +127,13 @@ public class OrderPushServiceImpl implements IOrderPushService{
} catch (Exception e) {
logger.error("common order post fail,orderCode is {}", orderInfo.getParentOrderCode());
}
JSONObject json = JSONObject.parseObject(pair.getRight());
if (((String) json.get("code")).equals("200")) {
logger.info("common pushOrder success,orderCode is {}", orderInfo.getParentOrderCode());
successCodes.add(orderInfo.getParentOrderCode());
} else {
logger.warn("common pushOrder fail,orderCode is {},message is {}", orderInfo.getParentOrderCode(), (String) json.get("msg"));
}
// JSONObject json = JSONObject.parseObject(pair.getRight());
// if (((String) json.get("code")).equals("200")) {
// logger.info("common pushOrder success,orderCode is {}", orderInfo.getParentOrderCode());
// successCodes.add(orderInfo.getParentOrderCode());
// } else {
// logger.warn("common pushOrder fail,orderCode is {},message is {}", orderInfo.getParentOrderCode(), (String) json.get("msg"));
// }
}
}
}
... ...