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

@@ -35,6 +35,10 @@ public class WmsSchedulePlanDetail extends BaseEntity {
* 产线ID
*/
private Long lineId;
/**
* 批次id
*/
private Long batchId;
/**
* 产品ID
*/

View File

@@ -35,6 +35,11 @@ public class WmsSchedulePlanDetailBo extends BaseEntity {
*/
private Long lineId;
/**
* 批次id
*/
private Long batchId;
/**
* 产品ID
*/

View File

@@ -40,6 +40,12 @@ public class WmsSchedulePlanDetailVo {
@ExcelProperty(value = "产线ID")
private Long lineId;
/**
* 批次id
*/
@ExcelProperty(value = "批次id")
private Long batchId;
/**
* 产品ID
*/

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());

View File

@@ -8,6 +8,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="detailId" column="detail_id"/>
<result property="planId" column="plan_id"/>
<result property="lineId" column="line_id"/>
<result property="batchId" column="batch_id"/>
<result property="productId" column="product_id"/>
<result property="quantity" column="quantity"/>
<result property="startDate" column="start_date"/>