fix(anneal): 修复退火性能查询中的逻辑库区筛选问题

- 移除Mapper中废弃的warehouseId筛选条件
- 删除无用的wms_furnace_plan_coil关联查询
- 修复服务层出炉逻辑库区筛选逻辑
- 添加正确的退火计划钢卷库区匹配验证
- 优化钢卷筛选条件确保数据准确性
- 调整查询性能避免不必要的表连接
This commit is contained in:
2026-07-11 18:09:34 +08:00
parent a83a8147a4
commit b0a332fda1
2 changed files with 8 additions and 10 deletions

View File

@@ -157,11 +157,17 @@ public class WmsAnnealPerformanceServiceImpl implements IWmsAnnealPerformanceSer
continue;
}
}
// 钢卷本身的逻辑库区筛选coilVo.warehouseId保持不变
if (bo.getCoilWarehouseId() != null) {
if (coilVo.getWarehouseId() == null ||
!coilVo.getWarehouseId().equals(bo.getCoilWarehouseId())) {
continue; // 跳过不匹配的钢卷
continue;
}
}
// 出炉逻辑库区筛选planCoil.logicWarehouseId是加工后去向
if (bo.getWarehouseId() != null) {
if (planCoil.getLogicWarehouseId() == null ||
!planCoil.getLogicWarehouseId().equals(bo.getWarehouseId())) {
continue;
}
}
// 为每个planCoil创建独立的detail携带自身的logicWarehouseId/furnaceLevel