feat(delivery): 添加发货计划ID字段支持按计划查询发货单明细

- 在WmsDeliveryWaybillDetailBo中新增planId字段
- 在查询条件中增加planId过滤逻辑
- 实现根据发货计划ID查询所有关联发货单明细的功能
This commit is contained in:
2026-04-07 16:46:16 +08:00
parent 505f821df0
commit f9a60cec99
2 changed files with 7 additions and 0 deletions

View File

@@ -95,5 +95,9 @@ public class WmsDeliveryWaybillDetailBo extends BaseEntity {
*/
private String remark;
/**
* 发货计划ID用于根据计划ID查询所有关联的发货单明细
*/
private Long planId;
}

View File

@@ -263,6 +263,9 @@
<if test="bo.unitPrice != null">
AND d.unit_price = #{bo.unitPrice}
</if>
<if test="bo.planId != null">
AND w.plan_id = #{bo.planId}
</if>
</select>