1、新增旧货市场
2、新增用户等级
This commit is contained in:
@@ -12,13 +12,16 @@ module.exports = {
|
||||
let {uid} = data;
|
||||
let res = {code: 0, msg: ""};
|
||||
// 业务逻辑开始-----------------------------------------------------------
|
||||
const {pageIndex, pageSize, parentId, keyword, city} = data
|
||||
const whereJson = {parentId}
|
||||
const {pageIndex, pageSize, parentId, keyword, city, } = data
|
||||
const whereJson = {}
|
||||
if (vk.pubfn.isNotNull(keyword)) {
|
||||
whereJson.name = new RegExp(keyword)
|
||||
}
|
||||
if (vk.pubfn.isNotNull(city)) {
|
||||
whereJson.address.city.code = city
|
||||
whereJson['address.city.code'] = city
|
||||
}
|
||||
if (vk.pubfn.isNotNull(parentId)) {
|
||||
whereJson.parentId = parentId
|
||||
}
|
||||
|
||||
res = await vk.baseDao.select({
|
||||
|
||||
Reference in New Issue
Block a user