|
|
@ -1136,7 +1136,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
} |
|
|
} |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
List<String> positions = haiAnPdaAutoWarehouseMapper.getPalletTypePositions(site, palletType); |
|
|
List<String> positions = haiAnPdaAutoWarehouseMapper.getPalletTypePositions(site, palletType); |
|
|
return buildPalletScanResult(palletId, palletType, palletInfo.getLocationCode(), positions); |
|
|
|
|
|
|
|
|
// 扫码值仅用于去方向后缀后定位托盘,返回数据库真实主键供页面后续组盘提交使用,避免大小写沿入参传播 - rqrq |
|
|
|
|
|
return buildPalletScanResult(palletInfo.getPalletId(), palletType, palletInfo.getLocationCode(), positions); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -1150,7 +1151,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
String palletType = palletInfo.getPalletType(); |
|
|
List<String> positions = haiAnPdaAutoWarehouseMapper.getPalletTypePositions(site, palletType); |
|
|
List<String> positions = haiAnPdaAutoWarehouseMapper.getPalletTypePositions(site, palletType); |
|
|
return buildPalletScanResult(palletId, palletType, palletInfo.getLocationCode(), positions); |
|
|
|
|
|
|
|
|
// 查看托盘同样回传数据库真实主键,避免页面继续使用去后缀后的扫码原值 - rqrq |
|
|
|
|
|
return buildPalletScanResult(palletInfo.getPalletId(), palletType, palletInfo.getLocationCode(), positions); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -2178,7 +2180,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
if (row == null) { |
|
|
if (row == null) { |
|
|
throw new RuntimeException("栈板不存在:" + palletId); |
|
|
throw new RuntimeException("栈板不存在:" + palletId); |
|
|
} |
|
|
} |
|
|
row.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 换站扫描回传主表真实托盘码,扫码入参只承担去方向后缀后的查询作用 - rqrq |
|
|
|
|
|
row.setPalletId(palletInfo.getPalletId()); |
|
|
// 海安无独立站点主表时,站点ID与站点编码统一回写为location_code,兼容老前端展示 - rqrq |
|
|
// 海安无独立站点主表时,站点ID与站点编码统一回写为location_code,兼容老前端展示 - rqrq |
|
|
if (!StringUtils.hasText(row.getCurrentStationId()) && StringUtils.hasText(row.getCurrentStationCode())) { |
|
|
if (!StringUtils.hasText(row.getCurrentStationId()) && StringUtils.hasText(row.getCurrentStationCode())) { |
|
|
row.setCurrentStationId(row.getCurrentStationCode()); |
|
|
row.setCurrentStationId(row.getCurrentStationCode()); |
|
|
@ -2203,7 +2206,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
} |
|
|
} |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
HaiAnCheckPalletResult row = new HaiAnCheckPalletResult(); |
|
|
HaiAnCheckPalletResult row = new HaiAnCheckPalletResult(); |
|
|
row.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 人工移动页面使用数据库真实托盘码继续提交,避免大小写差异进入后续操作 - rqrq |
|
|
|
|
|
row.setPalletId(palletInfo.getPalletId()); |
|
|
row.setCallingFlag(palletInfo.getCallingFlag()); |
|
|
row.setCallingFlag(palletInfo.getCallingFlag()); |
|
|
row.setCurrentStationCode(palletInfo.getLocationCode()); |
|
|
row.setCurrentStationCode(palletInfo.getLocationCode()); |
|
|
row.setCurrentStationId(palletInfo.getLocationCode()); |
|
|
row.setCurrentStationId(palletInfo.getLocationCode()); |
|
|
@ -3048,7 +3052,7 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
if (!"Y".equalsIgnoreCase(result.getIsEmpty())) { |
|
|
if (!"Y".equalsIgnoreCase(result.getIsEmpty())) { |
|
|
throw new RuntimeException("该托盘不是空托盘,无法进行空托盘组盘操作"); |
|
|
throw new RuntimeException("该托盘不是空托盘,无法进行空托盘组盘操作"); |
|
|
} |
|
|
} |
|
|
result.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 空托校验查询已返回主表 pallet_id,保留数据库原值供页面后续入库操作使用 - rqrq |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -3217,7 +3221,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
result.setArea(palletInfo.getArea()); |
|
|
result.setArea(palletInfo.getArea()); |
|
|
result.setCanOperate(showCancelButton ? "Y" : "N"); |
|
|
result.setCanOperate(showCancelButton ? "Y" : "N"); |
|
|
result.setIsEmpty(showRemoveAllButton ? "Y" : "N"); |
|
|
result.setIsEmpty(showRemoveAllButton ? "Y" : "N"); |
|
|
result.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 取消组盘页回传主表真实托盘码,避免使用去方向后缀后的扫码原值 - rqrq |
|
|
|
|
|
result.setPalletId(palletInfo.getPalletId()); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -3368,7 +3373,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
HaiAnPalletInfoResult palletInfo = loadRequiredPallet(site, palletId); |
|
|
// 合托扫描阶段先校验组盘权限,来源和目标都按同一规则拦截 - rqrq |
|
|
// 合托扫描阶段先校验组盘权限,来源和目标都按同一规则拦截 - rqrq |
|
|
validatePackAbleForBulkPalletOperation(site, palletInfo); |
|
|
validatePackAbleForBulkPalletOperation(site, palletInfo); |
|
|
result.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 来源盘和目标盘共用此校验,统一回传数据库真实托盘码供合托页面后续提交 - rqrq |
|
|
|
|
|
result.setPalletId(palletInfo.getPalletId()); |
|
|
result.setCanOperate("Y"); |
|
|
result.setCanOperate("Y"); |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
@ -3732,7 +3738,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
markRelocateTransferDecision(row); |
|
|
markRelocateTransferDecision(row); |
|
|
} |
|
|
} |
|
|
HaiAnPalletRelocateScanResult result = new HaiAnPalletRelocateScanResult(); |
|
|
HaiAnPalletRelocateScanResult result = new HaiAnPalletRelocateScanResult(); |
|
|
result.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 重移库扫码结果使用主表真实托盘码,后续重试请求沿用这一主键 - rqrq |
|
|
|
|
|
result.setPalletId(palletInfo.getPalletId()); |
|
|
result.setAreaId(areaId); |
|
|
result.setAreaId(areaId); |
|
|
result.setAreaDesc(area.getAreaDesc()); |
|
|
result.setAreaDesc(area.getAreaDesc()); |
|
|
result.setWarehouseId(warehouseId); |
|
|
result.setWarehouseId(warehouseId); |
|
|
@ -3806,7 +3813,8 @@ public class HaiAnPdaAutoWarehouseServiceImpl implements HaiAnPdaAutoWarehouseSe |
|
|
// 栈板必须存在且未删除;失败直接中断,避免页面改到不存在的托盘 - rqrq |
|
|
// 栈板必须存在且未删除;失败直接中断,避免页面改到不存在的托盘 - rqrq |
|
|
HaiAnPalletInfoResult pallet = loadRequiredPallet(site, palletId); |
|
|
HaiAnPalletInfoResult pallet = loadRequiredPallet(site, palletId); |
|
|
HaiAnPalletSpecialEditResult result = new HaiAnPalletSpecialEditResult(); |
|
|
HaiAnPalletSpecialEditResult result = new HaiAnPalletSpecialEditResult(); |
|
|
result.setPalletId(palletId); |
|
|
|
|
|
|
|
|
// 特殊修改扫码结果使用主表真实托盘码,页面保存时沿用数据库主键大小写 - rqrq |
|
|
|
|
|
result.setPalletId(pallet.getPalletId()); |
|
|
result.setCallingFlag(normalizeCallingFlag(pallet.getCallingFlag())); |
|
|
result.setCallingFlag(normalizeCallingFlag(pallet.getCallingFlag())); |
|
|
result.setAreaId(StringUtils.hasText(pallet.getArea()) ? pallet.getArea().trim() : ""); |
|
|
result.setAreaId(StringUtils.hasText(pallet.getArea()) ? pallet.getArea().trim() : ""); |
|
|
result.setOnShelfFlag(StringUtils.hasText(pallet.getWcsLocation()) ? "Y" : "N"); |
|
|
result.setOnShelfFlag(StringUtils.hasText(pallet.getWcsLocation()) ? "Y" : "N"); |
|
|
|