错误拼写修正
This commit is contained in:
parent
d56066ae7f
commit
3748f3321e
@ -30,7 +30,7 @@ public class ApmsController extends BaseController {
|
|||||||
private OrderInfoService orderInfoService;
|
private OrderInfoService orderInfoService;
|
||||||
|
|
||||||
static String Token = "";
|
static String Token = "";
|
||||||
static String ApiAdress = "http://59.110.171.25:9010";
|
static String ApiAddress = "http://59.110.171.25:9010";
|
||||||
|
|
||||||
@PostMapping(value = "apmsPostOrder")
|
@PostMapping(value = "apmsPostOrder")
|
||||||
@ApiOperation(value = "接收APMS推送订单信息")
|
@ApiOperation(value = "接收APMS推送订单信息")
|
||||||
@ -45,19 +45,19 @@ public class ApmsController extends BaseController {
|
|||||||
checkToken();
|
checkToken();
|
||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("entity", apmsCreateProcess);
|
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();
|
.header("token", Token).form(paramMap).execute();
|
||||||
return successful(response);
|
return successful(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping(value = "startProcess")
|
@PostMapping(value = "startProcess")
|
||||||
@ApiOperation(value = "获取APMS订单开始处理")
|
@ApiOperation(value = "通知APMS订单开始处理")
|
||||||
public R startProcess(@Validated @RequestBody ApmsStartProcess apmsStartProcess) {
|
public R startProcess(@Validated @RequestBody ApmsStartProcess apmsStartProcess) {
|
||||||
//todo
|
//todo
|
||||||
checkToken();
|
checkToken();
|
||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("entity", apmsStartProcess);
|
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();
|
.header("token", Token).form(paramMap).execute();
|
||||||
return successful(response);
|
return successful(response);
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ public class ApmsController extends BaseController {
|
|||||||
checkToken();
|
checkToken();
|
||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("entity", apmsEndProcess);
|
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();
|
.header("token", Token).form(paramMap).execute();
|
||||||
return successful(response);
|
return successful(response);
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ public class ApmsController extends BaseController {
|
|||||||
checkToken();
|
checkToken();
|
||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("entity", apmsFinishProcessSheet);
|
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();
|
.header("token", Token).form(paramMap).execute();
|
||||||
return successful(response);
|
return successful(response);
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ public class ApmsController extends BaseController {
|
|||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("apiKey", "7ee8f59bbaeae27e");
|
paramMap.put("apiKey", "7ee8f59bbaeae27e");
|
||||||
paramMap.put("platFormCode", "CUC");
|
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);
|
JSON parse = JSONUtil.parse(result);
|
||||||
Object token = parse.getByPath("token");
|
Object token = parse.getByPath("token");
|
||||||
Token = token.toString();
|
Token = token.toString();
|
||||||
@ -106,7 +106,7 @@ public class ApmsController extends BaseController {
|
|||||||
checkToken();
|
checkToken();
|
||||||
HashMap<String, Object> paramMap = new HashMap<>();
|
HashMap<String, Object> paramMap = new HashMap<>();
|
||||||
paramMap.put("workShopCode", workShopCode);
|
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();
|
.header("token", Token).form(paramMap).execute();
|
||||||
//todo 记录通讯日志
|
//todo 记录通讯日志
|
||||||
return successful(response);
|
return successful(response);
|
||||||
|
Loading…
Reference in New Issue
Block a user