diff --git a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ApmsController.java b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ApmsController.java index 0cac0f5..17968f3 100644 --- a/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ApmsController.java +++ b/6.program/wms-empty/src/main/java/com/mt/wms/empty/controller/ApmsController.java @@ -30,7 +30,7 @@ public class ApmsController extends BaseController { private OrderInfoService orderInfoService; static String Token = ""; - static String ApiAdress = "http://59.110.171.25:9010"; + static String ApiAddress = "http://59.110.171.25:9010"; @PostMapping(value = "apmsPostOrder") @ApiOperation(value = "接收APMS推送订单信息") @@ -45,19 +45,19 @@ public class ApmsController extends BaseController { checkToken(); HashMap paramMap = new HashMap<>(); paramMap.put("entity", apmsCreateProcess); - HttpResponse response = HttpUtil.createPost(ApiAdress + "/platform/api/createProcessSheet") + HttpResponse response = HttpUtil.createPost(ApiAddress + "/platform/api/createProcessSheet") .header("token", Token).form(paramMap).execute(); return successful(response); } @PostMapping(value = "startProcess") - @ApiOperation(value = "获取APMS订单开始处理") + @ApiOperation(value = "通知APMS订单开始处理") public R startProcess(@Validated @RequestBody ApmsStartProcess apmsStartProcess) { //todo checkToken(); HashMap paramMap = new HashMap<>(); paramMap.put("entity", apmsStartProcess); - HttpResponse response = HttpUtil.createPost(ApiAdress + "/platform/api/startProcess") + HttpResponse response = HttpUtil.createPost(ApiAddress + "/platform/api/startProcess") .header("token", Token).form(paramMap).execute(); return successful(response); } @@ -69,7 +69,7 @@ public class ApmsController extends BaseController { checkToken(); HashMap paramMap = new HashMap<>(); paramMap.put("entity", apmsEndProcess); - HttpResponse response = HttpUtil.createPost(ApiAdress + "/platform/api/endProcess") + HttpResponse response = HttpUtil.createPost(ApiAddress + "/platform/api/endProcess") .header("token", Token).form(paramMap).execute(); return successful(response); } @@ -81,7 +81,7 @@ public class ApmsController extends BaseController { checkToken(); HashMap paramMap = new HashMap<>(); paramMap.put("entity", apmsFinishProcessSheet); - HttpResponse response = HttpUtil.createPost(ApiAdress + "/platform/api/finishProcessSheet") + HttpResponse response = HttpUtil.createPost(ApiAddress + "/platform/api/finishProcessSheet") .header("token", Token).form(paramMap).execute(); return successful(response); } @@ -92,7 +92,7 @@ public class ApmsController extends BaseController { HashMap paramMap = new HashMap<>(); paramMap.put("apiKey", "7ee8f59bbaeae27e"); paramMap.put("platFormCode", "CUC"); - String result = HttpUtil.get(ApiAdress + "/platform/api/getToken", paramMap); + String result = HttpUtil.get(ApiAddress + "/platform/api/getToken", paramMap); JSON parse = JSONUtil.parse(result); Object token = parse.getByPath("token"); Token = token.toString(); @@ -106,7 +106,7 @@ public class ApmsController extends BaseController { checkToken(); HashMap paramMap = new HashMap<>(); paramMap.put("workShopCode", workShopCode); - HttpResponse response = HttpUtil.createGet(ApiAdress + "/platform/api/getStoveCodeByWorkShopCode") + HttpResponse response = HttpUtil.createGet(ApiAddress + "/platform/api/getStoveCodeByWorkShopCode") .header("token", Token).form(paramMap).execute(); //todo 记录通讯日志 return successful(response);