外部用户修改
parent
5d2acf44c1
commit
008f5203c0
|
@ -669,7 +669,7 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
|
||||
//已生成的不管 管的只需要是 生成失败的并且需要生成账号的
|
||||
var needGenerateList = _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId && t.IsGenerateAccount && t.IsGenerateSuccess != true).ProjectTo<TrialSiteUserSurveyView>(_mapper.ConfigurationProvider).ToList();
|
||||
var needGenerateList = _trialSiteUserSurveyRepository.Where(t => t.TrialSiteSurveyId == trialSiteSurveyId && t.IsGenerateAccount && t.IsJoin != true ).ProjectTo<TrialSiteUserSurveyView>(_mapper.ConfigurationProvider).ToList();
|
||||
|
||||
|
||||
await GenerateAccountAsync(needGenerateList, trialId);
|
||||
|
|
|
@ -50,7 +50,7 @@ namespace IRaCIS.Core.Application.ViewModel
|
|||
|
||||
|
||||
|
||||
|
||||
public UserTypeEnum? UserTypeEnum { get; set; }
|
||||
|
||||
public DateTime? ExpireTime { get; set; }
|
||||
|
||||
|
|
|
@ -206,7 +206,8 @@ namespace IRaCIS.Core.Application.Service
|
|||
CreateMap<TrialExternalUser, TrialExternalUserAddOrEdit>().ReverseMap();
|
||||
CreateMap<TrialExternalUserAddOrEdit, User>();
|
||||
|
||||
CreateMap<TrialExternalUser, TrialExternalUserView>();
|
||||
CreateMap<TrialExternalUser, TrialExternalUserView>()
|
||||
.ForMember(t=>t.UserTypeEnum,u=>u.MapFrom(c=>c.SystemUser.UserTypeEnum));
|
||||
|
||||
|
||||
CreateMap<User, TrialExternalUser>().ReverseMap();
|
||||
|
|
|
@ -92,7 +92,8 @@ namespace IRaCIS.Core.Domain.Models
|
|||
|
||||
public Guid SystemUserId { get; set; }
|
||||
|
||||
|
||||
[JsonIgnore]
|
||||
public User SystemUser { get; set; }
|
||||
|
||||
public bool IsJoin { get; set; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue