fix
This commit is contained in:
@@ -818,17 +818,15 @@ 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);
|
||||||
JSONArray req = new JSONArray();
|
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("uuid", IdUtil.simpleUUID());
|
map.put("uuid", IdUtil.simpleUUID());
|
||||||
map.put("taskNo", entity.getTask_id());
|
map.put("taskNo", entity.getTask_id());
|
||||||
map.put("businessType", "COMPLETE");
|
map.put("businessType", "COMPLETE");
|
||||||
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(req);
|
body = acstowmsService.feedAgvTaskStatus(map);
|
||||||
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());
|
||||||
|
|||||||
Reference in New Issue
Block a user