|
|
|
@ -418,8 +418,8 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
AgvStation nowStation = wcsIntegrationMapper.getNowStation(site, palletId); |
|
|
|
if (nowStation == null) { |
|
|
|
//初始化的时候用 一开始栈板是没有位置的 按照第一个入栈的标签来给虚拟位置 后期不需要处理 |
|
|
|
if("Temp".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Temp"); |
|
|
|
if("TEMP".equals(labelWarehouseId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "TEMP"); |
|
|
|
}else if("AS".equals(labelLocationId)){ |
|
|
|
wcsIntegrationMapper.updatePalletLocationCode(site, palletId, "Virtual_AS"); |
|
|
|
}else { |
|
|
|
@ -428,6 +428,7 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
} |
|
|
|
|
|
|
|
// 校验栈板和物料的仓库是否一致(栈板的仓库通过location_code关联agv_station获取warehouse_code) |
|
|
|
nowStation=wcsIntegrationMapper.getNowStation(site, palletId); |
|
|
|
String palletWarehouseCode = nowStation.getWarehouseCode(); |
|
|
|
if (!labelWarehouseId.equals(palletWarehouseCode)) { |
|
|
|
throw new Exception("栈板和物料的仓库不同,无法进行打托操作"); |
|
|
|
@ -1119,9 +1120,6 @@ public class WcsIntegrationServiceImpl implements WcsIntegrationService { |
|
|
|
String username = ((SysUserEntity) SecurityUtils.getSubject().getPrincipal()).getUsername(); |
|
|
|
// 更新栈板calling_flag为Y |
|
|
|
wcsIntegrationMapper.updatePalletCallingFlag(site, palletId, "Y", username); |
|
|
|
}else { |
|
|
|
//如果是分次组托 说明在分拣 需要查下是否有相关订单 |
|
|
|
|
|
|
|
} |
|
|
|
Boolean boFlag="Y".equals(endFlag); |
|
|
|
//有常用料就有这个标记 |
|
|
|
|