Browse Source

```

feat(wcs): 添加初始化站点栈板校验功能

- 实现Z199初始化站点的目标区域检查
- 添加栈板详情查询验证栈板是否为空
- 阻止非空栈板绑定到初始化站点并抛出异常
- 允许空栈板正常移至初始化站点Z199
- 更新托盘绑定站点操作流程
```
master
常熟吴彦祖 1 month ago
parent
commit
07df9fdbb2
  1. 10
      src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java

10
src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java

@ -1991,6 +1991,16 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService {
throw new RuntimeException("站点【" + stationCode + "】不是正式站点");
}
// 检查目标站点区域是否为Z199初始化站点如果是则只允许空栈板 - rqrq
if ("Z199".equals(station.getAreaType())) {
// 查询栈板是否有货检查pallet_detail表- rqrq
Integer detailCount = wcsIntegrationMapper.countPalletDetails(site, palletId);
if (detailCount != null && detailCount > 0) {
throw new RuntimeException("初始化站点只允许绑定空栈板,当前栈板有" + detailCount + "个物料");
}
System.out.println("校验通过:空栈板可以移到初始化站点Z199 - rqrq");
}
// 更新托盘location_code - rqrq
wcsIntegrationMapper.updatePalletBindStation(site, palletId, stationCode);
// 更新站点状态为有货 - rqrq

Loading…
Cancel
Save