Commit 532a8f87 authored by Quxl's avatar Quxl

x

parent 8378c52b
......@@ -68,8 +68,7 @@ public class TestController {
@GetMapping("saveOrderTracking")
public Object saveOrderTracking() {
common.saveOrderTracking("sapmaterialmaster" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATETIME), "MaterialMaster", "123456", "123456", "G", null, "操作失败");
return "OK";
return common.saveOrderTracking("sapmaterialmaster" + DateUtil.formatDate(new Date(), DateUtil.FMT_DATETIME), "MaterialMaster", "123456", "123456", "G", null, "操作失败");
}
......
......@@ -131,7 +131,7 @@ public class CommonService {
}
}
public void saveOrderTracking(String traceNo, String orderType, String orderNo, String disCode, String action, String result, String errorMessage) {
public String saveOrderTracking(String traceNo, String orderType, String orderNo, String disCode, String action, String result, String errorMessage) {
if(isOpen) {
String requestUrl = baseUrl + insertOrderTrackingUri;
String token = this.getToken();
......@@ -145,8 +145,9 @@ public class CommonService {
parameters.put("action", action);
parameters.put("result", result);
parameters.put("errorMessage", errorMessage);
HttpUtil.post(requestUrl, parameters, headers);
return HttpUtil.post(requestUrl, parameters, headers);
}
return null;
}
public static class TrackingTokenException extends RuntimeException {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment