20231129
This commit is contained in:
@@ -51,12 +51,24 @@ module.exports = {
|
||||
businessCard: true,
|
||||
accountType: true,
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
|
||||
const rows = res.rows
|
||||
rows.forEach((row, rowIndex) => {
|
||||
row.productList.forEach(async (product, productIndex) => {
|
||||
const template = await vk.baseDao.findById({
|
||||
dbName,
|
||||
data: {
|
||||
id: product.goodsId
|
||||
}
|
||||
});
|
||||
rows[rowIndex].productList[productIndex].template = template
|
||||
})
|
||||
})
|
||||
res.rows = rows
|
||||
// 业务逻辑结束-----------------------------------------------------------
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user