|
|
@ -185,7 +185,7 @@ namespace Myshipping.Core.Service
|
|
|
|
throw Oops.Bah("请传入正确参数!");
|
|
|
|
throw Oops.Bah("请传入正确参数!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
DjyWebsiteAccountConfig accountConfig = new DjyWebsiteAccountConfig();
|
|
|
|
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)
|
|
|
|
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();
|
|
|
|
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();
|
|
|
|