rev 反馈中鼎wcs
This commit is contained in:
@@ -77,29 +77,12 @@ public class QueryZDAgvTaskStatus {
|
|||||||
TaskDto entity = taskService.findByCode(inst.getTask_code());
|
TaskDto entity = taskService.findByCode(inst.getTask_code());
|
||||||
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue();
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue();
|
||||||
String Type1=entity.getTask_type();
|
String Type1=entity.getTask_type();
|
||||||
if(StrUtil.equals(Type1,"定点任务")){
|
|
||||||
JSONObject jo = new JSONObject();
|
|
||||||
jo.put("taskCode",entity.getTask_code());
|
|
||||||
jo.put("carId","");
|
|
||||||
jo.put("taskType ",entity.getTask_type());
|
|
||||||
jo.put("feedbackStatus","taking");
|
|
||||||
log.info("请求参数:{}",jo);
|
|
||||||
try{
|
|
||||||
HttpResponse result= acsToWmsZDService.taskFeedback(jo);
|
|
||||||
log.info("请求ZDwcs成功,反馈取货中 请求结果{}",result.body());
|
|
||||||
} catch (Exception e) {
|
|
||||||
e.printStackTrace();
|
|
||||||
}
|
|
||||||
// JSONObject response=JSONObject.parseObject(result.body());
|
|
||||||
// int responseCode= response.getInteger("responseCode");
|
|
||||||
// if(responseCode == 0) {
|
|
||||||
// log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode);
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) {
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) {
|
||||||
|
|
||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
jo.put("taskCode",entity.getTask_code());
|
jo.put("taskCode",entity.getTask_code());
|
||||||
jo.put("carId","");
|
jo.put("carId",vehicle);
|
||||||
jo.put("taskType ",entity.getTask_type());
|
jo.put("taskType ",entity.getTask_type());
|
||||||
jo.put("feedbackStatus","taking");
|
jo.put("feedbackStatus","taking");
|
||||||
log.info("请求参数:{}",jo);
|
log.info("请求参数:{}",jo);
|
||||||
@@ -114,6 +97,26 @@ public class QueryZDAgvTaskStatus {
|
|||||||
// if(responseCode == 0) {
|
// if(responseCode == 0) {
|
||||||
// log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode);
|
// log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode);
|
||||||
// }
|
// }
|
||||||
|
} else {
|
||||||
|
if(StrUtil.equals(Type1,"定点任务")){
|
||||||
|
JSONObject jo = new JSONObject();
|
||||||
|
jo.put("taskCode",entity.getTask_code());
|
||||||
|
jo.put("carId",vehicle);
|
||||||
|
jo.put("taskType ",entity.getTask_type());
|
||||||
|
jo.put("feedbackStatus","taking");
|
||||||
|
log.info("请求参数:{}",jo);
|
||||||
|
try{
|
||||||
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo);
|
||||||
|
log.info("请求ZDwcs成功,反馈取货中 请求结果{}",result.body());
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
|
// JSONObject response=JSONObject.parseObject(result.body());
|
||||||
|
// int responseCode= response.getInteger("responseCode");
|
||||||
|
// if(responseCode == 0) {
|
||||||
|
// log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode);
|
||||||
|
// }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user