|
|
|
@ -229,9 +229,9 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
String palletId = item.getPalletId(); |
|
|
|
|
|
|
|
// 1. 检查栈板是否正在被调用 - rqrq |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(item.getSite(), palletId); |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new RuntimeException("栈板正在被调用中"); |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(item.getSite(), palletId); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new RuntimeException("栈板正在被调用中,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 2. 生成任务编号 - rqrq |
|
|
|
@ -322,7 +322,8 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
String callingFlag = (String) palletInfo.get("calling_flag"); |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
// if ("Y".equals(callingFlag)&&!BufferZoneConfig.BUFFER_Station_ID.getValue().equals(palletInfo.get("locationCode"))) { |
|
|
|
throw new RuntimeException("栈板正在被调用中,无法进行打托操作"); |
|
|
|
String remark = (String) palletInfo.get("remark"); |
|
|
|
throw new RuntimeException("栈板正在被调用中,无法进行打托操作,最近一次调用备注:" + (remark != null ? remark : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 获取栈板类型的位置信息 |
|
|
|
@ -423,11 +424,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
throw new Exception("参数不能为空"); |
|
|
|
} |
|
|
|
Map<String, Object> palletData = wcsIntegrationMapper.getPalletInfo(site, palletId); |
|
|
|
// 检查栈板是否正在被调用 |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(site, palletId); |
|
|
|
// if ("Y".equals(callingFlag)&&!BufferZoneConfig.BUFFER_Station_ID.getValue().equals(palletData.get("locationCode"))) { |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行打托操作"); |
|
|
|
// 检查栈板是否正在被调用 - rqrq |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行打托操作,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 1. 验证标签 |
|
|
|
@ -544,11 +544,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
} |
|
|
|
Map<String, Object> palletData = wcsIntegrationMapper.getPalletInfo(site, palletId); |
|
|
|
|
|
|
|
// 检查栈板是否正在被调用 |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(site, palletId); |
|
|
|
// if ("Y".equals(callingFlag)&&!BufferZoneConfig.BUFFER_Station_ID.getValue().equals(palletData.get("locationCode"))) { |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行扫出操作"); |
|
|
|
// 检查栈板是否正在被调用 - rqrq |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行扫出操作,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 检查标签是否在本栈板中 |
|
|
|
@ -594,9 +593,9 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
", position=" + data.getOriginalPosition() + ", layer=" + data.getOriginalLayer() + ", wcsFlag=" + data.getWcsFlag()); |
|
|
|
|
|
|
|
// 检查原栈板是否正在被调用 - rqrq |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(data.getSite(), data.getOriginalPalletId()); |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new Exception("原栈板正在被调用中,无法恢复标签"); |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(data.getSite(), data.getOriginalPalletId()); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new Exception("原栈板正在被调用中,无法恢复标签,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 执行恢复操作(先删除当前记录,再插入到原栈板)- rqrq |
|
|
|
@ -716,11 +715,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
} |
|
|
|
Map<String, Object> palletData = wcsIntegrationMapper.getPalletInfo(site, palletId); |
|
|
|
|
|
|
|
// 检查栈板是否正在被调用 |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(site, palletId); |
|
|
|
//if ("Y".equals(callingFlag)&&!BufferZoneConfig.BUFFER_Station_ID.getValue().equals(palletData.get("locationCode"))) { |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行位置调整"); |
|
|
|
// 检查栈板是否正在被调用 - rqrq |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new Exception("栈板正在被调用中,无法进行位置调整,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 验证标签是否在当前栈板中 |
|
|
|
@ -820,9 +818,9 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
String username = ((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUsername(); |
|
|
|
|
|
|
|
// 检查栈板calling_flag状态 - rqrq |
|
|
|
String callingFlag = wcsIntegrationMapper.checkPalletCallingFlag(site, palletId); |
|
|
|
if ("Y".equals(callingFlag)) { |
|
|
|
throw new Exception("栈板正在被调用中,无法创建运输任务"); |
|
|
|
com.gaotao.modules.warehouse.entity.Pallet pallet = wcsIntegrationMapper.getPalletByCode(site, palletId); |
|
|
|
if (pallet != null && "Y".equals(pallet.getCallingFlag())) { |
|
|
|
throw new Exception("栈板正在被调用中,无法创建运输任务,最近一次调用备注:" + (pallet.getRemark() != null ? pallet.getRemark() : "无")); |
|
|
|
} |
|
|
|
|
|
|
|
// 使用统一的运输任务调度方法 - rqrq |
|
|
|
|