修复获取企业报错
This commit is contained in:
@@ -17,10 +17,10 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
if (!vk.pubfn.isNull(data.keyword)) whereJson['company.companyName'] = new RegExp(data.keyword);
|
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.isCoop)) whereJson.isCoop = data.isCoop;
|
||||||
if (vk.pubfn.isNull(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);
|
whereJson['businessCard.address.province.code'] = _.in(data.province);
|
||||||
}
|
}
|
||||||
if (data.mainSpotCategoryIds.length > 0) {
|
if (vk.pubfn.isNull(data.mainSpotCategoryIds) && data.mainSpotCategoryIds && data.mainSpotCategoryIds.length > 0) {
|
||||||
whereJson['businessCard.mainSpotCategoryIds'] = _.in(data.mainSpotCategoryIds);
|
whereJson['businessCard.mainSpotCategoryIds'] = _.in(data.mainSpotCategoryIds);
|
||||||
}
|
}
|
||||||
// 业务逻辑开始-----------------------------------------------------------
|
// 业务逻辑开始-----------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user