1、新增旧货市场
2、新增用户等级
This commit is contained in:
@@ -13,12 +13,39 @@ module.exports = {
|
||||
let {uid} = data;
|
||||
let res = {code: 0, msg: ""};
|
||||
// 业务逻辑开始-----------------------------------------------------------
|
||||
res = await vk.baseDao.select({
|
||||
res = await vk.baseDao.selects({
|
||||
dbName,
|
||||
whereJson: {
|
||||
userId: uid,
|
||||
},
|
||||
limit: 1
|
||||
limit: 1,
|
||||
foreignDB: [
|
||||
{
|
||||
dbName: "jjx-goods-cooperate",
|
||||
localKey: "_id",
|
||||
foreignKey: "goodsId",
|
||||
as: "cooperateList",
|
||||
limit: 500, // limit=1则以对象形式返回
|
||||
foreignDB: [{
|
||||
dbName: "uni-id-users",
|
||||
localKey: "userId",
|
||||
foreignKey: "_id",
|
||||
as: "user",
|
||||
limit: 1, // limit=1则以对象形式返回
|
||||
fieldJson: {
|
||||
_id: true,
|
||||
company: {
|
||||
companyName: true
|
||||
},
|
||||
person: {
|
||||
personName: true
|
||||
},
|
||||
businessCard: true,
|
||||
accountType: true,
|
||||
},
|
||||
},
|
||||
]
|
||||
}]
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user