feat(WmsSchedulePlanDetail): 添加批次ID字段

- 在 WmsSchedulePlanDetail、WmsSchedulePlanDetailBo 和 WmsSchedulePlanDetailVo 类中添加 batchId 字段
- 更新 WmsSchedulePlanDetailMapper.xml,添加 batch_id 列的映射
- 在 WmsSchedulePlanDetailServiceImpl 中添加对 batchId 的查询条件
This commit is contained in:
2025-08-14 13:46:00 +08:00
parent 7518c68068
commit 85ae6c4efa
5 changed files with 18 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ public class WmsSchedulePlanDetailServiceImpl implements IWmsSchedulePlanDetailS
LambdaQueryWrapper<WmsSchedulePlanDetail> lqw = Wrappers.lambdaQuery();
lqw.eq(bo.getPlanId() != null, WmsSchedulePlanDetail::getPlanId, bo.getPlanId());
lqw.eq(bo.getLineId() != null, WmsSchedulePlanDetail::getLineId, bo.getLineId());
lqw.eq(bo.getBatchId() != null, WmsSchedulePlanDetail::getBatchId, bo.getBatchId());
lqw.eq(bo.getProductId() != null, WmsSchedulePlanDetail::getProductId, bo.getProductId());
lqw.eq(bo.getQuantity() != null, WmsSchedulePlanDetail::getQuantity, bo.getQuantity());
lqw.eq(bo.getStartDate() != null, WmsSchedulePlanDetail::getStartDate, bo.getStartDate());
@@ -77,6 +78,7 @@ public class WmsSchedulePlanDetailServiceImpl implements IWmsSchedulePlanDetailS
lqw.eq("wspd.del_flag", 0);
lqw.eq( bo.getPlanId()!=null ,"wspd.plan_id", bo.getPlanId());
lqw.eq(bo.getLineId()!=null ,"wspd.line_id", bo.getLineId());
lqw.eq(bo.getBatchId()!=null ,"wspd.batch_id", bo.getBatchId());
lqw.eq(bo.getProductId()!=null ,"wspd.product_id", bo.getProductId());
lqw.eq(bo.getQuantity()!=null ,"wspd.quantity", bo.getQuantity());
lqw.eq(bo.getStartDate()!=null ,"wspd.start_date", bo.getStartDate());