feat(wms/receivable): 在应收货物计划查询中补充订单编号和订单名称字段

- 在应收货物计划查询SQL中新增订单编号orderCode和订单名称orderName字段映射
- 关联crm_order表以获取订单信息,确保数据完整性
- 在应收货物计划VO类中补充订单编号和订单名称字段定义
This commit is contained in:
2026-05-22 17:46:11 +08:00
parent 3718132a59
commit 26f285ec80
2 changed files with 14 additions and 1 deletions

View File

@@ -87,4 +87,14 @@ public class WmsReceivableVo {
// 客户编号
private String customerCode;
/**
* 订单编号
*/
private String orderCode;
/**
* 订单名称
*/
private String orderName;
}

View File

@@ -37,9 +37,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
r.update_time,
r.update_by,
c.company_name as customerName,
c.customer_code as customerCode
c.customer_code as customerCode,
o.order_code as orderCode,
o.contract_name as orderName
from wms_receivable r
left join crm_customer c on r.customer_id = c.customer_id and c.del_flag = 0
left join crm_order o on r.order_id = o.order_id and o.del_flag = 0
${ew.customSqlSegment}
</select>