fix(工序出站):移除原有通过车间和产线查询存储位置的逻辑

This commit is contained in:
liaohechuan 2024-12-21 11:11:29 +08:00
parent 915428fb75
commit 2edd3af9f3

View File

@ -315,21 +315,6 @@ public class OperationOutServiceImpl extends ServiceImpl<OperationOutMapper, Ope
resultZLotMaterialCompleteTransaction.setFabNo(fabNoList.get(0).getFabNo());
resultZLotMaterialCompleteTransaction.setWorkCenter(fabNoList.get(0).getWorkCenter());
}
// // 通过车间和产线查询存储位置
// List<ZLotMaterialCompleteTransaction> zLotMaterialCompleteTransactionList = baseMapper.readStorageLocationByFabNo(site, WorkCenter.genHandle(site, resultZLotMaterialCompleteTransaction.getWorkCenter()), FabBasis.genHandle(site, resultZLotMaterialCompleteTransaction.getFabNo()));
// if (CollectionUtils.isNotEmpty(zLotMaterialCompleteTransactionList)) {
// resultZLotMaterialCompleteTransaction.setStorageLocation(zLotMaterialCompleteTransactionList.get(0).getStorageLocation());
// resultZLotMaterialCompleteTransaction.setWarehouseCode(zLotMaterialCompleteTransactionList.get(0).getWarehouseCode());
// resultZLotMaterialCompleteTransaction.setStorageBin(zLotMaterialCompleteTransactionList.get(0).getStorageBin());
// } else {
// // 有可能产线为空的情况
// zLotMaterialCompleteTransactionList = baseMapper.readStorageLocationByFabNo(site, null, FabBasis.genHandle(site, resultZLotMaterialCompleteTransaction.getFabNo()));
// if (CollectionUtils.isNotEmpty(zLotMaterialCompleteTransactionList)) {
// resultZLotMaterialCompleteTransaction.setStorageLocation(zLotMaterialCompleteTransactionList.get(0).getStorageLocation());
// resultZLotMaterialCompleteTransaction.setWarehouseCode(zLotMaterialCompleteTransactionList.get(0).getWarehouseCode());
// resultZLotMaterialCompleteTransaction.setStorageBin(zLotMaterialCompleteTransactionList.get(0).getStorageBin());
// }
// }
// 通过工序查询自定义字段是否创建库存走特殊逻辑(海门场景)
String isCreateInventory;
CustomFields isCreateInventoryCustomFields = customFieldsService.getOne(Wrappers.<CustomFields>lambdaQuery()