|
@@ -171,6 +171,17 @@ public class StackingAndLoadingVehiclesServiceImpl extends ServiceImpl<StackingA
|
|
|
log.info("C端起跺吊运单信息:" + JSON.toJSON(billetLiftingBillList));
|
|
|
saveBatchBilletLiftingBills(billetLiftingBillList);
|
|
|
|
|
|
+ // 验证垛位容器是否被占位
|
|
|
+ LambdaQueryWrapper<StackingAndLoadingVehicles> queryWrapperCheck = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapperCheck.eq(StackingAndLoadingVehicles::getCcmNo, ccmNo)
|
|
|
+ .eq(StackingAndLoadingVehicles::getLayer, jsonObject.getString("layer")).eq(StackingAndLoadingVehicles::getAddress, jsonObject.getString("address"));
|
|
|
+ // 查询垛位容器信息
|
|
|
+ StackingAndLoadingVehicles stackingAndLoadingVehiclesCheck = stackingAndLoadingVehiclesMapper.selectOne(queryWrapperCheck);
|
|
|
+ if (oConvertUtils.isNotEmpty(stackingAndLoadingVehiclesCheck) && oConvertUtils.isNotEmpty(stackingAndLoadingVehiclesCheck.getBilletNos())) {
|
|
|
+ log.info("{}{}", "该垛位容器位置已被占用,自动化新增堆垛失败!", jsonObject.toJSONString());
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// 根据billetHotsendTypeConfigId 查询基础垛位信息
|
|
|
BilletHotsendTypeConfig billetHotsendTypeConfig = billetHotsendTypeConfigService.getById(billetHotsendTypeConfigId);
|
|
|
loadingParams.setBelongTable(billetHotsendTypeConfig.getBelongTable());
|