|
@ -212,12 +212,14 @@ public class SFExpressService extends BaseService {
|
|
|
String filter_result = "";
|
|
|
String orderid = "";//业务订单号
|
|
|
String mailno = "";//顺丰运单号
|
|
|
String destCode = "";//目的地区域代码
|
|
|
List<?> child = root.elements();
|
|
|
for (Object o : child) {
|
|
|
Element e = (Element) o;
|
|
|
filter_result = e.attributeValue("filter_result");
|
|
|
orderid = e.attributeValue("orderid");
|
|
|
mailno = e.attributeValue("mailno");
|
|
|
destCode = e.attributeValue("destCode");
|
|
|
}
|
|
|
if(StringUtils.isNotBlank(filter_result) && "3".equals(filter_result)){
|
|
|
logger.info("顺丰快递下订单失败:派送地址不可派送,处方编号:"+sfexpress_obj.getPrescriptionCode());
|
|
@ -229,6 +231,7 @@ public class SFExpressService extends BaseService {
|
|
|
throw new Exception("顺丰快递下订单失败:未获取到快递单号!");
|
|
|
}
|
|
|
sfexpress_obj.setMailno(mailno);
|
|
|
sfexpress_obj.setCityCode(destCode);
|
|
|
}
|
|
|
return sfexpress_obj;
|
|
|
}
|
|
@ -526,6 +529,7 @@ public class SFExpressService extends BaseService {
|
|
|
String filter_result = "";
|
|
|
String orderid = "";//业务订单号
|
|
|
String mailno = "";//顺丰运单号
|
|
|
String destCode = "";//目的地区域代码
|
|
|
|
|
|
//错误代对应的文字
|
|
|
Document redoc = doc.selectSingleNode("/Response/Body/Orderresponse").getDocument();
|
|
@ -536,6 +540,7 @@ public class SFExpressService extends BaseService {
|
|
|
filter_result = e.attributeValue("filter_result");
|
|
|
orderid = e.attributeValue("orderid");
|
|
|
mailno = e.attributeValue("mailno");
|
|
|
destCode = e.attributeValue("destCode");
|
|
|
}
|
|
|
|
|
|
if(StringUtils.isBlank(mailno)){
|
|
@ -549,6 +554,7 @@ public class SFExpressService extends BaseService {
|
|
|
}
|
|
|
|
|
|
sfexpress_obj.setMailno(mailno);
|
|
|
sfexpress_obj.setCityCode(destCode);
|
|
|
}
|
|
|
|
|
|
//如果成功获取到快递单号,则保存处方物流记录,保存配送日志
|