新增金久信学堂

This commit is contained in:
2023-11-30 22:54:09 +08:00
parent f9f20e77ca
commit 78f89f2673
5 changed files with 45 additions and 27 deletions
@@ -45,7 +45,7 @@ module.exports = {
};
// 业务逻辑开始-----------------------------------------------------------
res.id = await vk.baseDao.add({
dbName,
dbName: '',
dataJson:{
title,
address,
@@ -36,6 +36,7 @@ module.exports = {
pageIndex,
pageSize,
whereJson,
sortArr:[{ name:"_add_time", type:"desc" }],
foreignDB: [
{
dbName: "uni-id-users",
@@ -58,6 +59,15 @@ module.exports = {
]
});
for (const item of res.rows) {
const index = res.rows.indexOf(item);
res.rows[index].quoteNum = await vk.baseDao.count({
dbName: 'jjx-process-quote',
whereJson:{
sheetId: item._id
}
})
}
// 业务逻辑结束-----------------------------------------------------------
return res;