|
@@ -148,6 +148,14 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void addOrderInfoToEfastTest(Order or) throws Exception {
|
|
|
+
|
|
|
+ List<OrderItem> items = adminOrderService.getShopOrderItemByOrderId(or.getSalesOrderid());
|
|
|
+ or = adminOrderService.getShopOrderByOrderId(or.getSalesOrderid());
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
@Override
|
|
|
public boolean addOrderInfoToEfast(MQMessage message) throws Exception {
|
|
@@ -252,8 +260,6 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
orderData.put("money_paid", (money/100.0)); // 已付款
|
|
|
orderData.put("oid", order.getSalesOrderid()); // 订单号
|
|
|
orderData.put("order_amount", (money/100.0)); // 应付款,应付款金额要与已付款金额相同
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* 产品信息
|
|
|
*/
|
|
@@ -271,7 +277,11 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
orderData.put("orders", maps); // 订单产品
|
|
|
orderData.put("pay_name", "weixinpay"); // 支付方式
|
|
|
orderData.put("pay_time", DateTimeUtil.format(order.getSalesTransactionDate()));// 支付时间
|
|
|
- orderData.put("postscript", order.getSalesUserRemark()); // 买家留言
|
|
|
+ if(order.getSalesUserRemark() == null){
|
|
|
+ orderData.put("postscript", " "); // 买家留言
|
|
|
+ }else{
|
|
|
+ orderData.put("postscript", order.getSalesUserRemark()); // 买家留言
|
|
|
+ }
|
|
|
orderData.put("province_name", provinceName); // 省份
|
|
|
orderData.put("sd_id", sd_id); // 对应 efast 店铺 id
|
|
|
orderData.put("shipping_fee", 0); // 快递费
|
|
@@ -282,7 +292,6 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
orderData.put("user_name", order.getSalesOpenid()); // 买家账户 百胜根据user_name来判断是否有重复,传openId是为了防止重复
|
|
|
orderData.put("zipcode", order.getSalesAddressPostnum()); // 邮编
|
|
|
|
|
|
-
|
|
|
com.fasterxml.jackson.databind.ObjectMapper mapper = new ObjectMapper();
|
|
|
String orderDataStr = null;;
|
|
|
try {
|
|
@@ -427,7 +436,6 @@ public class EfastOrderServiceImpl implements EfastOrderService {
|
|
|
orderData.put("user_name", agentOrder.getAgentId()); // 买家账户 百胜根据user_name来判断是否有重复,传openId是为了防止重复
|
|
|
orderData.put("zipcode", agentOrder.getAgentAddressPostnum()); // 邮编
|
|
|
|
|
|
-
|
|
|
com.fasterxml.jackson.databind.ObjectMapper mapper = new ObjectMapper();
|
|
|
String orderDataStr = null;;
|
|
|
try {
|