feat(WmsSchedulePlanDetail): 添加批次ID字段
- 在 WmsSchedulePlanDetail、WmsSchedulePlanDetailBo 和 WmsSchedulePlanDetailVo 类中添加 batchId 字段 - 更新 WmsSchedulePlanDetailMapper.xml,添加 batch_id 列的映射 - 在 WmsSchedulePlanDetailServiceImpl 中添加对 batchId 的查询条件
This commit is contained in:
@@ -35,6 +35,10 @@ public class WmsSchedulePlanDetail extends BaseEntity {
|
||||
* 产线ID
|
||||
*/
|
||||
private Long lineId;
|
||||
/**
|
||||
* 批次id
|
||||
*/
|
||||
private Long batchId;
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
|
||||
@@ -35,6 +35,11 @@ public class WmsSchedulePlanDetailBo extends BaseEntity {
|
||||
*/
|
||||
private Long lineId;
|
||||
|
||||
/**
|
||||
* 批次id
|
||||
*/
|
||||
private Long batchId;
|
||||
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
|
||||
@@ -40,6 +40,12 @@ public class WmsSchedulePlanDetailVo {
|
||||
@ExcelProperty(value = "产线ID")
|
||||
private Long lineId;
|
||||
|
||||
/**
|
||||
* 批次id
|
||||
*/
|
||||
@ExcelProperty(value = "批次id")
|
||||
private Long batchId;
|
||||
|
||||
/**
|
||||
* 产品ID
|
||||
*/
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user