fix(anneal): 修复退火性能查询中的逻辑库区筛选问题
- 移除Mapper中废弃的warehouseId筛选条件 - 删除无用的wms_furnace_plan_coil关联查询 - 修复服务层出炉逻辑库区筛选逻辑 - 添加正确的退火计划钢卷库区匹配验证 - 优化钢卷筛选条件确保数据准确性 - 调整查询性能避免不必要的表连接
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user