Uat_Study
{872297557@qq.com} 2023-01-18 11:19:50 +08:00
parent d201cc4c86
commit fd3aeaff4c
4 changed files with 31 additions and 20 deletions

View File

@ -98,6 +98,11 @@ namespace IRaCIS.Application.Contracts
public string Description { get; set; } = string.Empty; public string Description { get; set; } = string.Empty;
} }
public class BasicDicSelectCopy:BasicDicSelect
{
}
public class BasicDicSelect public class BasicDicSelect
{ {
public Guid Id { get; set; } public Guid Id { get; set; }

View File

@ -201,14 +201,16 @@ namespace IRaCIS.Application.Services
/// </summary> /// </summary>
/// <param name="searchKey"></param> /// <param name="searchKey"></param>
/// <returns></returns> /// <returns></returns>
public async Task<List<BasicDicSelect>> GetBasicDataSelect(string searchKey) public async Task<List<BasicDicSelectCopy>> GetBasicDataSelect(string searchKey)
{ {
var searchList = await _dicRepository.Where(t => t.Parent.Code == searchKey && t.ParentId != null && t.IsEnable).ProjectTo<BasicDicSelect>(_mapper.ConfigurationProvider).ToListAsync(); var searchList = await _dicRepository.Where(t => t.Parent.Code == searchKey && t.ParentId != null && t.IsEnable).ProjectTo<BasicDicSelectCopy>(_mapper.ConfigurationProvider).ToListAsync();
return searchList; return searchList;
} }
/// <summary> /// <summary>
/// 根据父亲字典分组 获取子项 /// 根据父亲字典分组 获取子项
/// </summary> /// </summary>

View File

@ -39,10 +39,13 @@ namespace IRaCIS.Core.Application.Service
CreateMap<AddOrEditBasicDic, Dictionary>().ReverseMap(); CreateMap<AddOrEditBasicDic, Dictionary>().ReverseMap();
CreateMap<Dictionary, BasicDicSelectCopy>()
.ForMember(o => o.ParentChildCodeEnum, t => t.MapFrom(u => u.Parent.ChildCodeEnum))
.ForMember(o => o.Value, t => t.MapFrom(u => u.MappedValue))
.ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code));
CreateMap<Dictionary, BasicDicSelect>() CreateMap<Dictionary, BasicDicSelect>()
.ForMember(o => o.ParentChildCodeEnum, t => t.MapFrom(u => u.Parent.ChildCodeEnum)) .ForMember(o => o.ParentChildCodeEnum, t => t.MapFrom(u => u.Parent.ChildCodeEnum))
.ForMember(o => o.Value, t => t.MapFrom(u => u.MappedValue))
.ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code)); .ForMember(o => o.ParentCode, t => t.MapFrom(u => u.Parent.Code));
var token = ""; var token = "";

View File

@ -74,10 +74,8 @@ namespace IRaCIS.Core.Application.Contracts
//找下系统中是否存在该用户类型的 并且邮箱 或者手机的账户 //找下系统中是否存在该用户类型的 并且邮箱 或者手机的账户
var sysUserInfo = await _repository.Where<User>(t => t.UserTypeId == item.UserTypeId && t.EMail == item.Email).Include(t => t.UserTypeRole).FirstOrDefaultAsync(); var sysUserInfo = await _repository.Where<User>(t => t.UserTypeId == item.UserTypeId && t.EMail == item.Email).Include(t => t.UserTypeRole).FirstOrDefaultAsync();
if (sysUserInfo == null) if (sysUserInfo != null)
{ {
sysUserInfo = new User() { IsZhiZhun=false,IsTestUser= (trialType == TrialType.NoneOfficial) };
}
if (trialType == TrialType.OfficialTrial || trialType == TrialType.Training) if (trialType == TrialType.OfficialTrial || trialType == TrialType.Training)
{ {
@ -100,6 +98,9 @@ namespace IRaCIS.Core.Application.Contracts
} }
} }
}
var entity = await _trialSiteUserSurveyRepository.InsertOrUpdateAsync(addOrEditTrialSiteUserSurvey, true); var entity = await _trialSiteUserSurveyRepository.InsertOrUpdateAsync(addOrEditTrialSiteUserSurvey, true);
return ResponseOutput.Ok(entity.Id.ToString()); return ResponseOutput.Ok(entity.Id.ToString());