修改取网站账户逻辑Bug x.IsTenant == false加了这一句跟公司的网站区分开

master
jianghaiqing 8 months ago
parent 3fb5c28f5c
commit f770a5a461

@ -185,7 +185,7 @@ namespace Myshipping.Core.Service
throw Oops.Bah("请传入正确参数!");
}
DjyWebsiteAccountConfig accountConfig = new DjyWebsiteAccountConfig();
accountConfig = await _rep.FirstOrDefaultAsync(x => x.TypeCode == TypeCode && x.CreatedUserId == UserId);
accountConfig = await _rep.FirstOrDefaultAsync(x => x.TypeCode == TypeCode && x.CreatedUserId == UserId && x.IsTenant == false);
if (accountConfig == null)
{
accountConfig = await _rep.AsQueryable().InnerJoin<SysUser>((d, t) => d.TenantId == t.TenantId).Where((d, t) => d.TypeCode == TypeCode && t.Id == UserId && d.IsTenant == true).FirstAsync();

Loading…
Cancel
Save