Commit c92a2a4d by Sxy

fix: 商机 companyFind

parent 2216c387
......@@ -408,7 +408,6 @@ class UserService extends ServiceBase {
await self.cacheManager["ClientBindBizUserCache"].invalidate(clientMobile)
}
}
if (isGoExec) {
let companyFind = await self.companyDao.model.findOne({
where: { name: spName }, include: [
{
......@@ -416,7 +415,9 @@ class UserService extends ServiceBase {
}
], excludes: ['orgJson'], transaction: t
});
console.log("getBizUserForBizChance获取服务商信息:" + JSON.stringify(companyFind));
console.log("getBizUserForBizChance获取服务商信息:" + companyFind);
if (companyFind) {
if (isGoExec) {
let users = companyFind.us
let cansels = users.filter(u => {
if (regionName && regionName != "" && u.regiontags) {
......@@ -464,7 +465,9 @@ class UserService extends ServiceBase {
return { userInfo: null, comInfo: { compId: companyFind.id } };
}
}
} else {
return { userInfo: null, comInfo: null }
}
})
}
async findCostBySkuCode(skucode) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment