fix(库存服务): 修正转移物品查询中产品名称字段错误
将查询中的 productName 字段改为 name 字段以正确获取产品名称
This commit is contained in:
parent
3968fd8965
commit
6cb793b3ca
|
|
@ -547,7 +547,7 @@ export class StockService {
|
|||
qb
|
||||
.select([
|
||||
'ti.transferId AS transferId',
|
||||
"JSON_ARRAYAGG(JSON_OBJECT('id', ti.id, 'productName', ti.productName,'sku', ti.sku, 'quantity', ti.quantity)) AS items",
|
||||
"JSON_ARRAYAGG(JSON_OBJECT('id', ti.id, 'productName', ti.name,'sku', ti.sku, 'quantity', ti.quantity)) AS items",
|
||||
])
|
||||
.from(TransferItem, 'ti')
|
||||
.groupBy('ti.transferId'),
|
||||
|
|
|
|||
Loading…
Reference in New Issue