|
|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.gaotao.modules.automatedWarehouse.task; |
|
|
|
|
|
|
|
import com.gaotao.common.utils.ErrorLogUtils; |
|
|
|
import com.gaotao.modules.api.entity.NeedPalletTask; |
|
|
|
import com.gaotao.modules.automatedWarehouse.entity.AgvStation; |
|
|
|
import com.gaotao.modules.automatedWarehouse.entity.WcsCallbackTask; |
|
|
|
@ -60,6 +61,8 @@ public class AutoTaskScheduler { |
|
|
|
autoTaskService.processNeedPalletTask(wmsTransportTask); |
|
|
|
successCount++; |
|
|
|
} catch (Exception e) { |
|
|
|
ErrorLogUtils.logException(wmsTransportTask.getSite(), "立库自动化", "处理获取栈板任务:"+wmsTransportTask.getSourceType(), wmsTransportTask.getTaskNo(), e); |
|
|
|
|
|
|
|
log.error("处理预约获取托盘任务失败:TaskNo={}, error={}", wmsTransportTask.getTaskNo(), e.getMessage()); |
|
|
|
failCount++; |
|
|
|
// 继续处理下一个数据 |
|
|
|
@ -104,6 +107,8 @@ public class AutoTaskScheduler { |
|
|
|
autoTaskService.processScheduledTransportPalletTask(wmsTransportTask); |
|
|
|
successCount++; |
|
|
|
} catch (Exception e) { |
|
|
|
ErrorLogUtils.logException(wmsTransportTask.getSite(), "立库自动化", "处理运输栈板任务:"+wmsTransportTask.getSourceType(), wmsTransportTask.getTaskNo(), e); |
|
|
|
|
|
|
|
log.error("处理预约运输栈板任务失败 - rqrq:TaskNo={}, error={}", |
|
|
|
wmsTransportTask.getTaskNo(), e.getMessage(), e); |
|
|
|
failCount++; |
|
|
|
@ -145,6 +150,7 @@ public class AutoTaskScheduler { |
|
|
|
|
|
|
|
|
|
|
|
for (AgvStation station : stations) { |
|
|
|
NeedPalletTask needPalletTask=new NeedPalletTask(); |
|
|
|
try { |
|
|
|
log.info("开始为站点 {} 自动调用空托盘 - rqrq,站点编码={}, 托盘类型={}, 等待站点={}", |
|
|
|
station.getStationName(), |
|
|
|
@ -153,7 +159,6 @@ public class AutoTaskScheduler { |
|
|
|
station.getWaitStationCode()); |
|
|
|
|
|
|
|
// 构建NeedPalletTask参数 - rqrq |
|
|
|
NeedPalletTask needPalletTask = new NeedPalletTask(); |
|
|
|
needPalletTask.setSite("55"); // 固定站点为55 - rqrq |
|
|
|
needPalletTask.setStationCode(station.getStationCode()); // 使用wait_station_code作为目标站点 - rqrq |
|
|
|
needPalletTask.setPalletType(station.getAutoCallBlankPalletType()); // 使用auto_call_blank_pallet_type作为栈板类型 - rqrq |
|
|
|
@ -168,6 +173,8 @@ public class AutoTaskScheduler { |
|
|
|
log.info("站点 {} 自动续盘成功 - rqrq", station.getStationCode()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
ErrorLogUtils.logException(needPalletTask.getSite(), "立库自动化", "站点自动续盘", needPalletTask.getStationCode(), e); |
|
|
|
|
|
|
|
failCount++; |
|
|
|
log.error("站点 {} 自动续盘失败 - rqrq:stationCode={}, error={}", |
|
|
|
station.getStationName(), |
|
|
|
|