|
|
|
@ -279,11 +279,13 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
mtOrderStatusDTO.setWarehouse(mtFactoryOrderMain.getCenterWarehouseCode()); |
|
|
|
|
mtOrderStatusDTO.setDealerName(mtFactoryOrder.getDealerName()); |
|
|
|
|
|
|
|
|
|
String s = JSONObject.toJSONString(mtOrderStatusDTO); |
|
|
|
|
|
|
|
|
|
//先获取token
|
|
|
|
|
String token = getMtToken(); |
|
|
|
|
|
|
|
|
|
//请求参数
|
|
|
|
|
logger.info("##############handleStatusData: 推送包件状态请求参数 {}",mtOrderStatusDTO); |
|
|
|
|
logger.info("##############handleStatusData: 推送包件状态请求参数 {}",s); |
|
|
|
|
|
|
|
|
|
//处理逻辑
|
|
|
|
|
String result = HttpRequest.post(mtFactoryProperties.getUrl()+"/Auth/text") |
|
|
|
@ -292,7 +294,7 @@ public class MtFactoryDataServiceImpl implements IMtFactoryDataService {
|
|
|
|
|
.header("USERID",mtFactoryProperties.getUserid()) |
|
|
|
|
.header("USERPWD",mtFactoryProperties.getUserpwd()) |
|
|
|
|
.header("Content-Type","application/json") |
|
|
|
|
.body(JSONObject.toJSONString(mtOrderStatusDTO)).timeout(5 * 1000) |
|
|
|
|
.body(s).timeout(5 * 1000) |
|
|
|
|
.execute().body(); |
|
|
|
|
|
|
|
|
|
logger.info("##############handleStatusData: 推送包件状态返回参数 {}",result); |
|
|
|
|