feat(WmsAnnealPerformance): 添加当前钢卷号和逻辑库区ID筛选功能

- 在WmsAnnealPerformanceBo中新增currentCoilNo和warehouseId字段
- 在Mapper XML中添加currentCoilNo和warehouseId的查询条件
- 修改JOIN条件以支持多字段筛选
- 在服务实现中添加对新字段的筛选逻辑
- 更新注释内容以反映新的筛选条件
This commit is contained in:
2026-04-27 13:00:33 +08:00
parent fe048ff91f
commit 43ace2f91e
3 changed files with 30 additions and 2 deletions

View File

@@ -140,13 +140,25 @@ public class WmsAnnealPerformanceServiceImpl implements IWmsAnnealPerformanceSer
// 设置炉火层级
coilVo.setFurnaceLevel(planCoil.getFurnaceLevel());
// 如果传入了enterCoilNo筛选条件,只保留匹配的钢卷
// 如果传入了筛选条件,只保留匹配的钢卷
if (bo.getEnterCoilNo() != null && !bo.getEnterCoilNo().isEmpty()) {
if (coilVo.getEnterCoilNo() == null ||
!coilVo.getEnterCoilNo().contains(bo.getEnterCoilNo())) {
continue; // 跳过不匹配的钢卷
}
}
if (bo.getCurrentCoilNo() != null && !bo.getCurrentCoilNo().isEmpty()) {
if (coilVo.getCurrentCoilNo() == null ||
!coilVo.getCurrentCoilNo().contains(bo.getCurrentCoilNo())) {
continue; // 跳过不匹配的钢卷
}
}
if (bo.getWarehouseId() != null) {
if (coilVo.getWarehouseId() == null ||
!coilVo.getWarehouseId().equals(bo.getWarehouseId())) {
continue; // 跳过不匹配的钢卷
}
}
coilVos.add(coilVo);
}