|
@ -818,17 +818,17 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code()); |
|
|
TaskFeedbackDto feefbackdto = taskFeedbackService.findByCode(entity.getTask_code()); |
|
|
System.out.println(feefbackdto == null); |
|
|
System.out.println(feefbackdto == null); |
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
JSONArray req = new JSONArray(); |
|
|
feed_jo.put("task_id", entity.getTask_id()); |
|
|
JSONObject map = new JSONObject(); |
|
|
feed_jo.put("task_code", entity.getTask_code()); |
|
|
map.put("uuid", IdUtil.simpleUUID()); |
|
|
feed_jo.put("task_status", entity.getTask_status()); |
|
|
map.put("taskNo", entity.getTask_id()); |
|
|
JSONArray ja = new JSONArray(); |
|
|
map.put("businessType", "COMPLETE"); |
|
|
ja.add(feed_jo); |
|
|
req.add(map); |
|
|
String message = null; |
|
|
String message = null; |
|
|
HttpResponse body = null; |
|
|
HttpResponse body = null; |
|
|
boolean flag = false; |
|
|
boolean flag = false; |
|
|
try { |
|
|
try { |
|
|
body = acstowmsService.feedbackTaskStatusToWms(ja); |
|
|
body = acstowmsService.feedbackTaskStatusToWms(req); |
|
|
log.info("任务号:{},反馈wms任务状态完成成功,响应信息:{}!", entity.getTask_code(), body.body()); |
|
|
log.info("任务号:{},反馈wms任务状态完成成功,响应信息:{}!", entity.getTask_code(), body.body()); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
log.error("任务号:{},反馈wms任务状态失败,原因:{}!", entity.getTask_code(), e.getMessage()); |
|
|
log.error("任务号:{},反馈wms任务状态失败,原因:{}!", entity.getTask_code(), e.getMessage()); |
|
@ -952,13 +952,13 @@ public class TaskServiceImpl implements TaskService, ApplicationAutoInitial { |
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
// 判断是否为WMS下发的任务,如果是反馈任务状态给WMS
|
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
String hasWms = paramService.findByCode(AcsConfig.HASWMS).getValue(); |
|
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
if (!StrUtil.startWith(entity.getTask_code(), "-") && StrUtil.equals(hasWms, "1")) { |
|
|
JSONObject feed_jo = new JSONObject(); |
|
|
JSONArray req = new JSONArray(); |
|
|
feed_jo.put("task_id", entity.getTask_id()); |
|
|
JSONObject map = new JSONObject(); |
|
|
feed_jo.put("task_code", entity.getTask_code()); |
|
|
map.put("uuid", IdUtil.simpleUUID()); |
|
|
feed_jo.put("task_status", entity.getTask_status()); |
|
|
map.put("taskNo", entity.getTask_id()); |
|
|
JSONArray ja = new JSONArray(); |
|
|
map.put("businessType", "CANCEL"); |
|
|
ja.add(feed_jo); |
|
|
req.add(map); |
|
|
acstowmsService.feedbackTaskStatusToWms(ja); |
|
|
acstowmsService.feedbackTaskStatusToWms(req); |
|
|
} |
|
|
} |
|
|
List<RouteLineDto> shortPathsList = |
|
|
List<RouteLineDto> shortPathsList = |
|
|
routeLineService.getShortPathLines( |
|
|
routeLineService.getShortPathLines( |
|
|