From ab0193f955b64f5ab8636c46b5d1f0f86fde8806 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期四, 07 八月 2025 13:41:12 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/TaskLogScheduler.java | 35 +++++++++++++++++++++++++---------- 1 files changed, 25 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/TaskLogScheduler.java b/src/main/java/com/zy/asrs/task/TaskLogScheduler.java index afb6bc3..b629447 100644 --- a/src/main/java/com/zy/asrs/task/TaskLogScheduler.java +++ b/src/main/java/com/zy/asrs/task/TaskLogScheduler.java @@ -3,6 +3,7 @@ import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.mapper.EntityWrapper; +import com.core.common.Cools; import com.core.common.SpringUtils; import com.zy.asrs.domain.enums.TaskStatusType; import com.zy.asrs.entity.*; @@ -110,20 +111,25 @@ .build() .doPost(); }catch (Exception e){ + log.error("wms浠诲姟瀹屾垚璇锋眰鍑洪敊"+e.getMessage()); continue; } - + if (Cools.isEmpty(response)){ + log.error("wms浠诲姟瀹屾垚锛岃姹備綋锛�"+JSON.toJSONString(taskOverToWms)+"杩斿洖鍊间负:"+response); + } JSONObject jsonObject = JSON.parseObject(response); + + apiLogService.save("Wms浠诲姟瀹屾垚鎺ュ彛" + ,wmsUrl+"/wcsManager/wcsInterface/taskStatusFeedback" + ,null + ,"127.0.0.1" + ,JSON.toJSONString(taskOverToWms) + ,response + ,true + ); if (jsonObject.getInteger("code").equals(200)){ - apiLogService.save("Wms浠诲姟瀹屾垚鎺ュ彛" - ,wmsUrl+"/wcsManager/wcsInterface/taskStatusFeedback" - ,null - ,"127.0.0.1" - ,JSON.toJSONString(taskOverToWms) - ,response - ,true - ); + }else { continue; } @@ -238,7 +244,16 @@ try { apiLogService.clearWeekBefore(); } catch (Exception e) { - log.error("绗笁鏂规帴鍙f棩蹇楄嚜鍔ㄦ竻闄ゅけ璐ワ紙鑼冨洿锛氫竴鍛ㄤ箣鍓�", e); + log.error("绗笁鏂规帴鍙f棩蹇楄嚜鍔ㄦ竻闄ゅけ璐ワ紙鑼冨洿锛氫竴鏈堜箣鍓�)", e); + } + } + + @Scheduled(cron = "0 0/10 * * * ? ") + public void clearCommandInfo(){ + try { + commandInfoService.clearCommandInfo(); + } catch (Exception e) { + log.error("寮傚父鎸囦护鑷姩娓呴櫎澶辫触锛堣寖鍥达細浠诲姟琛ㄤ负绌烘椂娓呯悊", e); } } -- Gitblit v1.9.1