1、新增旧货市场

2、新增用户等级
This commit is contained in:
2023-12-10 14:53:07 +08:00
parent a45d185c64
commit 17b2d8f117
112 changed files with 10795 additions and 6362 deletions
@@ -12,22 +12,27 @@ module.exports = {
let {customUtil, uniID, config, pubFun, vk, db, _} = util;
let {uid} = data;
let res = {code: 0, msg: ""};
const whereJson = {
const whereJson = {
accountType: 2
}
if (!vk.pubfn.isNull(data.keyword)) whereJson['company.companyName'] = new RegExp(data.keyword);
if (!vk.pubfn.isNull(data.isCoop)) whereJson.isCoop = data.isCoop;
if (vk.pubfn.isNull(data.province) && data.province && data.province.length > 0) {
if (!vk.pubfn.isNull(data.province) && data.province && data.province.length > 0) {
whereJson['businessCard.address.province.code'] = _.in(data.province);
}
if (vk.pubfn.isNull(data.mainSpotCategoryIds) && data.mainSpotCategoryIds && data.mainSpotCategoryIds.length > 0) {
if (!vk.pubfn.isNull(data.city) && data.city && data.city.length > 0) {
whereJson['businessCard.address.city.code'] = _.in(data.city);
}
if (!vk.pubfn.isNull(data.mainSpotCategoryIds) && data.mainSpotCategoryIds && data.mainSpotCategoryIds.length > 0) {
whereJson['businessCard.mainSpotCategoryIds'] = _.in(data.mainSpotCategoryIds);
}
// 业务逻辑开始-----------------------------------------------------------
res = await vk.baseDao.select({
dbName: dbName.user,
whereJson,
pageSize: -1
pageSize: -1,
pageIndex: 1,
sortArr: [{"name": "_id", "type": "desc"}],
});
console.log('whereJson', whereJson)
// 业务逻辑结束-----------------------------------------------------------