新增金久信学堂
This commit is contained in:
@@ -59,15 +59,23 @@ module.exports = {
|
||||
const rows = res.rows
|
||||
rows.forEach((row, rowIndex) => {
|
||||
row.productList.forEach(async (product, productIndex) => {
|
||||
const template = await vk.baseDao.findById({
|
||||
rows[rowIndex].productList[productIndex].template = await vk.baseDao.findById({
|
||||
dbName,
|
||||
data: {
|
||||
id: product.goodsId
|
||||
}
|
||||
});
|
||||
rows[rowIndex].productList[productIndex].template = template
|
||||
})
|
||||
})
|
||||
for (const item of res.rows) {
|
||||
const index = res.rows.indexOf(item);
|
||||
res.rows[index].quoteNum = await vk.baseDao.count({
|
||||
dbName: 'jjx-enquiry-quote',
|
||||
whereJson:{
|
||||
sheetId: item._id
|
||||
}
|
||||
})
|
||||
}
|
||||
res.rows = rows
|
||||
// 业务逻辑结束-----------------------------------------------------------
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user