1、新增旧货市场
2、新增用户等级
This commit is contained in:
@@ -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)
|
||||
// 业务逻辑结束-----------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user