From 2e6307e4880bb0e7b578f3ee4eacf6fb03494a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Mon, 22 Sep 2025 17:48:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/WcsIntegrationServiceImpl.java | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java b/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java index b8e833a..176f6e9 100644 --- a/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java +++ b/src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java @@ -480,25 +480,16 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { @Transactional public void callPalletToStation(Map params) throws Exception { String site = (String) params.get("site"); - String palletId = (String) params.get("palletId"); String station = (String) params.get("station"); - if (!StringUtils.hasText(site) || !StringUtils.hasText(palletId) || !StringUtils.hasText(station)) { + if (!StringUtils.hasText(site) || !StringUtils.hasText(station)) { throw new Exception("参数不能为空"); } - // 检查栈板calling_flag状态 - String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(site, palletId); - if ("Y".equals(callingFlag)) { - throw new Exception("栈板正在被调用中,无法执行Call操作"); - } - String username = ((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUsername(); - // TODO: 后期在这里调用WCS接口实现Call栈板功能 - // 示例:wcsApiService.callPalletToStation(site, palletId, station); - - // 更新栈板calling_flag为Y - // wcsIntegrationMapper.updatePalletCallingFlag(site, palletId, "Y", username); + // TODO: 后期在这里调用WCS接口实现调用空托盘功能 + // AGV会自动判断并调用合适的空托盘到指定站点 + // 示例:wcsApiService.callEmptyPalletToStation(site, station); } }