Browse Source

fix(wcs): 解决栈板操作前未检查标签的问题

- 添加栈板详情检查方法调用
- 在存在标签时抛出运行时异常提示栈板非空
- 阻止对有标签栈板进行错误操作
master
常熟吴彦祖 5 days ago
parent
commit
80907d4bbb
  1. 5
      src/main/java/com/gaotao/modules/automatedWarehouse/service/impl/WcsIntegrationServiceImpl.java

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

@ -2086,7 +2086,10 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService {
String palletId = (String) params.get("palletId");
String transportFlag = (String) params.get("transportFlag");
Integer count= (Integer) params.get("count");
boolean hasPalletDetail = checkPalletHasDetail(site, palletId);
if(hasPalletDetail){
throw new RuntimeException("栈板上存在标签,不是空托盘!");
}
// 参数校验 - rqrq
if (!StringUtils.hasText(site)) {
throw new RuntimeException("工厂编码不能为空");

Loading…
Cancel
Save