|
@ -7,6 +7,7 @@ using EFCore.Sharding; |
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.AspNetCore.Http; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using System; |
|
|
using System; |
|
|
|
|
|
using System.Collections.Generic; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
|
|
@ -29,12 +30,25 @@ namespace Coldairarrow.Api |
|
|
TeamId = httpContextAccessor?.HttpContext?.User.Claims |
|
|
TeamId = httpContextAccessor?.HttpContext?.User.Claims |
|
|
.Where(x => x.Type == "teamId").FirstOrDefault()?.Value; |
|
|
.Where(x => x.Type == "teamId").FirstOrDefault()?.Value; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SonTeamList = httpContextAccessor?.HttpContext?.User.Claims |
|
|
|
|
|
.Where(x => x.Type == "sonTeamIds").FirstOrDefault()?.Value?.Split(',', StringSplitOptions.RemoveEmptyEntries).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
if (SonTeamList == null) |
|
|
|
|
|
SonTeamList = new List<string>(); |
|
|
|
|
|
|
|
|
|
|
|
SonTeamList.Add(TeamId); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private Base_UserDTO _property; |
|
|
private Base_UserDTO _property; |
|
|
private object _lockObj = new object(); |
|
|
private object _lockObj = new object(); |
|
|
|
|
|
|
|
|
public string TeamId { get; set; } |
|
|
public string TeamId { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<string> SonTeamList { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 当前操作者UserId
|
|
|
/// 当前操作者UserId
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|