fix(wms/receivable): 修正应收货物计划查询客户信息字段映射
- 将客户名称查询字段从c.name调整为c.company_name以匹配CRM客户表结构 - 新增客户编号customerCode字段映射,补充客户信息完整性 - 调整关联表从wms_customer切换为crm_customer确保数据一致性
This commit is contained in:
@@ -83,6 +83,8 @@ public class WmsReceivableVo {
|
||||
/**
|
||||
* 客户名称
|
||||
*/
|
||||
@ExcelProperty(value = "客户名称")
|
||||
private String customerName;
|
||||
|
||||
// 客户编号
|
||||
private String customerCode;
|
||||
}
|
||||
|
||||
@@ -36,9 +36,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
r.create_by,
|
||||
r.update_time,
|
||||
r.update_by,
|
||||
c.name as customerName
|
||||
c.company_name as customerName,
|
||||
c.customer_code as customerCode
|
||||
from wms_receivable r
|
||||
left join wms_customer c on r.customer_id = c.customer_id and c.del_flag = 0
|
||||
left join crm_customer c on r.customer_id = c.customer_id and c.del_flag = 0
|
||||
${ew.customSqlSegment}
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user