|
@ -710,7 +710,7 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
HttpResponse body = null; |
|
|
HttpResponse body = null; |
|
|
boolean flag = false; |
|
|
boolean flag = false; |
|
|
try { |
|
|
try { |
|
|
// body = acstowmsService.feedbackTaskStatusToWms(ja);
|
|
|
body = acstowmsService.feedbackTaskStatusToWms(ja); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
flag = true; |
|
|
flag = true; |
|
|
message = e.getMessage(); |
|
|
message = e.getMessage(); |
|
@ -718,71 +718,71 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
} finally { |
|
|
} finally { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
// if (flag) {
|
|
|
if (flag) { |
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
// feefbackdto.setError_code("400");
|
|
|
feefbackdto.setError_code("400"); |
|
|
// feefbackdto.setIs_finished("0");
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
// feefbackdto.setRemark(message);
|
|
|
feefbackdto.setRemark(message); |
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
// } else {
|
|
|
} else { |
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
// feefbackdto.setStart_point_code(entity.getStart_point_code());
|
|
|
feefbackdto.setStart_point_code(entity.getStart_point_code()); |
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
// feefbackdto.setError_code("400");
|
|
|
feefbackdto.setError_code("400"); |
|
|
// feefbackdto.setRemark(message);
|
|
|
feefbackdto.setRemark(message); |
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
// }
|
|
|
} |
|
|
// } else {
|
|
|
} else { |
|
|
// int status = body.getStatus();
|
|
|
int status = body.getStatus(); |
|
|
// JSONObject jo = JSONObject.parseObject(body.body());
|
|
|
JSONObject jo = JSONObject.parseObject(body.body()); |
|
|
// if (ObjectUtil.isEmpty(feefbackdto)) {
|
|
|
if (ObjectUtil.isEmpty(feefbackdto)) { |
|
|
// feefbackdto = new TaskFeedbackDto();
|
|
|
feefbackdto = new TaskFeedbackDto(); |
|
|
// feefbackdto.setTask_id(entity.getTask_id());
|
|
|
feefbackdto.setTask_id(entity.getTask_id()); |
|
|
// feefbackdto.setTask_code(entity.getTask_code());
|
|
|
feefbackdto.setTask_code(entity.getTask_code()); |
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
// feefbackdto.setVehicle_type(entity.getVehicle_type());
|
|
|
feefbackdto.setVehicle_type(entity.getVehicle_type()); |
|
|
// feefbackdto.setVehicle_code(entity.getVehicle_code());
|
|
|
feefbackdto.setVehicle_code(entity.getVehicle_code()); |
|
|
// feefbackdto.setError_code(String.valueOf(body.getStatus()));
|
|
|
feefbackdto.setError_code(String.valueOf(body.getStatus())); |
|
|
// feefbackdto.setStart_device_code(entity.getStart_device_code());
|
|
|
feefbackdto.setStart_device_code(entity.getStart_device_code()); |
|
|
// feefbackdto.setStart_point_code(entity.getNext_point_code());
|
|
|
feefbackdto.setStart_point_code(entity.getNext_point_code()); |
|
|
// feefbackdto.setNext_device_code(entity.getNext_device_code());
|
|
|
feefbackdto.setNext_device_code(entity.getNext_device_code()); |
|
|
// feefbackdto.setNext_point_code(entity.getNext_point_code());
|
|
|
feefbackdto.setNext_point_code(entity.getNext_point_code()); |
|
|
// if (status == 200) {
|
|
|
if (status == 200) { |
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
// feefbackdto.setIs_finished("1");
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
// } else {
|
|
|
} else { |
|
|
// feefbackdto.setIs_finished("0");
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
// }
|
|
|
} |
|
|
// } else {
|
|
|
} else { |
|
|
// feefbackdto.setIs_finished("0");
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
// feefbackdto.setRemark(jo.getString("message"));
|
|
|
feefbackdto.setRemark(jo.getString("message")); |
|
|
// }
|
|
|
} |
|
|
// taskFeedbackService.create(feefbackdto);
|
|
|
taskFeedbackService.create(feefbackdto); |
|
|
// } else {
|
|
|
} else { |
|
|
// feefbackdto.setTask_status(entity.getTask_status());
|
|
|
feefbackdto.setTask_status(entity.getTask_status()); |
|
|
// if (status == 200) {
|
|
|
if (status == 200) { |
|
|
// } else {
|
|
|
} else { |
|
|
// if (StrUtil.equals(entity.getTask_status(), "2")) {
|
|
|
if (StrUtil.equals(entity.getTask_status(), "2")) { |
|
|
// feefbackdto.setIs_finished("1");
|
|
|
feefbackdto.setIs_finished("1"); |
|
|
// } else {
|
|
|
} else { |
|
|
// feefbackdto.setIs_finished("0");
|
|
|
feefbackdto.setIs_finished("0"); |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
// taskFeedbackService.update(feefbackdto);
|
|
|
taskFeedbackService.update(feefbackdto); |
|
|
// }
|
|
|
} |
|
|
// }
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|