|
|
|
@ -408,7 +408,7 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
|
|
|
|
String inStockFlag = (String) labelInfo.get("inStockFlag"); |
|
|
|
String labelWarehouseId = (String) labelInfo.get("warehouseId"); |
|
|
|
|
|
|
|
String labelLocationId = (String) labelInfo.get("locationId"); |
|
|
|
if (!"Y".equals(inStockFlag)) { |
|
|
|
throw new Exception("标签不在库状态"); |
|
|
|
} |
|
|
|
@ -416,7 +416,14 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
// 获取栈板当前所在站点 |
|
|
|
AgvStation nowStation = wcsIntegrationMapper.getNowStation(site, palletId); |
|
|
|
if (nowStation == null) { |
|
|
|
throw new Exception("栈板不在运输点位,无法进行打托操作"); |
|
|
|
|
|
|
|
if("Temp".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Temp"); |
|
|
|
}else if("AS".equals(labelLocationId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Virtual_AS"); |
|
|
|
}else { |
|
|
|
throw new Exception("栈板不在运输点位,无法进行打托操作"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 校验栈板和物料的仓库是否一致(栈板的仓库通过location_code关联agv_station获取warehouse_code) |
|
|
|
|