|
|
@ -702,92 +702,120 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
} |
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
|
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
|
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code()); |
|
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
|
feed_jo.put("task_id", entity.getExt_task_id()); |
|
|
|
feed_jo.put("task_code", dto.getTask_code()); |
|
|
|
feed_jo.put("task_status", dto.getTask_status()); |
|
|
|
JSONArray ja = new JSONArray(); |
|
|
|
ja.add(feed_jo); |
|
|
|
String message = null; |
|
|
|
HttpResponse body = null; |
|
|
|
boolean flag = false; |
|
|
|
try { |
|
|
|
body = acstowmsService.feedbackTaskStatusToWms(ja); |
|
|
|
} catch (Exception e) { |
|
|
|
flag = true; |
|
|
|
message = e.getMessage(); |
|
|
|
e.printStackTrace(); |
|
|
|
} finally { |
|
|
|
|
|
|
|
} |
|
|
|
if (flag) { |
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setError_code("400"); |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
feefbackdto.setRemark(message); |
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
|
} else { |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setError_code("400"); |
|
|
|
feefbackdto.setRemark(message); |
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
|
} |
|
|
|
} else { |
|
|
|
int status = body.getStatus(); |
|
|
|
JSONObject jo = JSONObject.parseObject(body.body()); |
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
|
feefbackdto.setError_code(String.valueOf(body.getStatus())); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
if (status == 200) { |
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
feefbackdto.setRemark(jo.getString("message")); |
|
|
|
} |
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
|
} else { |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
if (status == 200) { |
|
|
|
} else { |
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
} |
|
|
|
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); |
|
|
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo); |
|
|
|
JSONObject response=JSONObject.parseObject(result.body()); |
|
|
|
int responseCode= response.getInteger("responseCode"); |
|
|
|
if(responseCode == 0) { |
|
|
|
log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode); |
|
|
|
} |
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
|
} |
|
|
|
if (!StrUtil.startWith(dto.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
|
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); |
|
|
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo); |
|
|
|
JSONObject response=JSONObject.parseObject(result.body()); |
|
|
|
int responseCode= response.getInteger("responseCode"); |
|
|
|
if(responseCode == 0) { |
|
|
|
log.info("请求ZDwcs成功,申请取货 请求结果{}",responseCode); |
|
|
|
} |
|
|
|
} |
|
|
|
// TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code());
|
|
|
|
// JSONObject feed_jo = new JSONObject();
|
|
|
|
// feed_jo.put("task_id", entity.getExt_task_id());
|
|
|
|
// feed_jo.put("task_code", dto.getTask_code());
|
|
|
|
// feed_jo.put("task_status", dto.getTask_status());
|
|
|
|
// JSONArray ja = new JSONArray();
|
|
|
|
// ja.add(feed_jo);
|
|
|
|
// String message = null;
|
|
|
|
// HttpResponse body = null;
|
|
|
|
// boolean flag = false;
|
|
|
|
// try {
|
|
|
|
// body = acstowmsService.feedbackTaskStatusToWms(ja);
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// flag = true;
|
|
|
|
// message = e.getMessage();
|
|
|
|
// e.printStackTrace();
|
|
|
|
// } finally {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// if (flag) {
|
|
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setError_code("400");
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// feefbackdto.setRemark(message);
|
|
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setError_code("400");
|
|
|
|
// feefbackdto.setRemark(message);
|
|
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// int status = body.getStatus();
|
|
|
|
// JSONObject jo = JSONObject.parseObject(body.body());
|
|
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
|
// feefbackdto.setError_code(String.valueOf(body.getStatus()));
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// if (status == 200) {
|
|
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
|
// feefbackdto.setIs_finished("1");
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// feefbackdto.setRemark(jo.getString("message"));
|
|
|
|
// }
|
|
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// if (status == 200) {
|
|
|
|
// } else {
|
|
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
|
// feefbackdto.setIs_finished("1");
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -818,97 +846,97 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
removeByCodeFromCache(entity.getTask_code()); |
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
|
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code()); |
|
|
|
System.out.println(feefbackdto == null); |
|
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
|
feed_jo.put("task_id", entity.getTask_id()); |
|
|
|
feed_jo.put("task_code", entity.getTask_code()); |
|
|
|
feed_jo.put("task_status", entity.getTask_status()); |
|
|
|
JSONArray ja = new JSONArray(); |
|
|
|
ja.add(feed_jo); |
|
|
|
String message = null; |
|
|
|
HttpResponse body = null; |
|
|
|
boolean flag = false; |
|
|
|
try { |
|
|
|
body = acstowmsService.feedbackTaskStatusToWms(ja); |
|
|
|
log.info("任务号:{},反馈wms任务状态完成成功,响应信息:{}!", entity.getTask_code(), body.body()); |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("任务号:{},反馈wms任务状态失败,原因:{}!", entity.getTask_code(), e.getMessage()); |
|
|
|
flag = true; |
|
|
|
message = e.getMessage(); |
|
|
|
e.printStackTrace(); |
|
|
|
} finally { |
|
|
|
|
|
|
|
} |
|
|
|
if (flag) { |
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setError_code("400"); |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
feefbackdto.setRemark(message); |
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
|
} else { |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setError_code("400"); |
|
|
|
feefbackdto.setRemark(message); |
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
|
} |
|
|
|
} else { |
|
|
|
int status = body.getStatus(); |
|
|
|
JSONObject jo = JSONObject.parseObject(body.body()); |
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
|
feefbackdto.setError_code(String.valueOf(body.getStatus())); |
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
|
feefbackdto.setStart_point_code(entity.getNext_point_code()); |
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
|
if (status == 200) { |
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
feefbackdto.setRemark(jo.getString("message")); |
|
|
|
} |
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
|
} else { |
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
|
if (status == 200) { |
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
|
feefbackdto.setRemark(jo.getString("message")); |
|
|
|
} |
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) {
|
|
|
|
// TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code());
|
|
|
|
// System.out.println(feefbackdto == null);
|
|
|
|
// JSONObject feed_jo = new JSONObject();
|
|
|
|
// feed_jo.put("task_id", entity.getTask_id());
|
|
|
|
// feed_jo.put("task_code", entity.getTask_code());
|
|
|
|
// feed_jo.put("task_status", entity.getTask_status());
|
|
|
|
// JSONArray ja = new JSONArray();
|
|
|
|
// ja.add(feed_jo);
|
|
|
|
// String message = null;
|
|
|
|
// HttpResponse body = null;
|
|
|
|
// boolean flag = false;
|
|
|
|
// try {
|
|
|
|
// body = acstowmsService.feedbackTaskStatusToWms(ja);
|
|
|
|
// log.info("任务号:{},反馈wms任务状态完成成功,响应信息:{}!", entity.getTask_code(), body.body());
|
|
|
|
// } catch (Exception e) {
|
|
|
|
// log.error("任务号:{},反馈wms任务状态失败,原因:{}!", entity.getTask_code(), e.getMessage());
|
|
|
|
// flag = true;
|
|
|
|
// message = e.getMessage();
|
|
|
|
// e.printStackTrace();
|
|
|
|
// } finally {
|
|
|
|
//
|
|
|
|
// }
|
|
|
|
// if (flag) {
|
|
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setError_code("400");
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// feefbackdto.setRemark(message);
|
|
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setError_code("400");
|
|
|
|
// feefbackdto.setRemark(message);
|
|
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// int status = body.getStatus();
|
|
|
|
// JSONObject jo = JSONObject.parseObject(body.body());
|
|
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
|
// feefbackdto.setError_code(String.valueOf(body.getStatus()));
|
|
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
|
// feefbackdto.setStart_point_code(entity.getNext_point_code());
|
|
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
|
// if (status == 200) {
|
|
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
|
// feefbackdto.setIs_finished("1");
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// feefbackdto.setRemark(jo.getString("message"));
|
|
|
|
// }
|
|
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
|
// if (status == 200) {
|
|
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
|
// feefbackdto.setIs_finished("1");
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// feefbackdto.setIs_finished("0");
|
|
|
|
// feefbackdto.setRemark(jo.getString("message"));
|
|
|
|
// }
|
|
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// 如果属于先知AGV,关闭运单序列
|
|
|
|
if (StrUtil.equals(paramService.findByCode(AcsConfig.AGVTYPE).getValue(), "3")) { |
|
|
|
try { |
|
|
@ -954,6 +982,21 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
|
|
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
|
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); |
|
|
|
HttpResponse result= acsToWmsZDService.taskFeedback(jo); |
|
|
|
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")) { |
|
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
|
feed_jo.put("task_code", entity.getTask_code()); |
|
|
|