feat(purchase): 添加采购订单供应商名称显示功能
- 引入 ErpSupplierVo 和 ErpSupplierMapper 依赖 - 在采购订单查询接口中批量获取供应商信息 - 通过流式处理构建供应商ID到名称的映射关系 - 将供应商名称动态设置到采购订单VO对象中 - 实现供应商名称的批量查询优化避免N+1问题
This commit is contained in:
@@ -39,6 +39,11 @@ public class ErpPurchaseOrderVo implements Serializable {
|
||||
@ExcelProperty(value = "供应商ID")
|
||||
private Long supplierId;
|
||||
|
||||
/**
|
||||
* 供应商名称
|
||||
*/
|
||||
private String supplierName;
|
||||
|
||||
/**
|
||||
* 下单日期
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user