|
|
@@ -23,6 +23,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
@@ -116,6 +117,9 @@ public class SFLogisticsService implements LogisticsService {
|
|
|
//预下单 已返回订单id
|
|
|
orderData.put("orderId",bizWaybillOrder.getWaybillNo());
|
|
|
orderData.put("monthlyCard",sfExpressConfig.getMonthlyCord());//月结账户
|
|
|
+ //上门取件时间
|
|
|
+ // 定义日期格式
|
|
|
+ orderData.put("sendStartTm",bizWaybillOrder.getSendStartTime());
|
|
|
//包裹数
|
|
|
orderData.put("parcelQty",bizWaybillOrder.getGoodsQty());
|
|
|
//产品类别
|
|
|
@@ -243,9 +247,7 @@ public class SFLogisticsService implements LogisticsService {
|
|
|
JSONObject jsonObject = JSON.parseObject(result).getJSONObject("apiResultData");
|
|
|
JSONObject resultInfo = new JSONObject();
|
|
|
if (jsonObject != null && jsonObject.containsKey("success") && jsonObject.getBooleanValue("success")) {
|
|
|
-
|
|
|
resultInfo.put("success", true);
|
|
|
- resultInfo.put("data", bizWaybillOrder);
|
|
|
resultInfo.put("msg", "订单取消成功!");
|
|
|
return resultInfo;
|
|
|
} else {
|