错误拼写修正

This commit is contained in:
徐晨晨 2021-11-18 11:21:12 +08:00
parent d56066ae7f
commit 3748f3321e

View File

@ -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<String, Object> 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<String, Object> 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<String, Object> 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<String, Object> 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<String, Object> 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<String, Object> 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);