修改医生信息报错
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1baa31db04
commit
1fb1b3d563
|
@ -43,7 +43,6 @@ if (string.IsNullOrWhiteSpace(enviromentName))
|
||||||
? args[index + 1]
|
? args[index + 1]
|
||||||
: "Development";
|
: "Development";
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
|
var builder = WebApplication.CreateBuilder(new WebApplicationOptions
|
||||||
|
@ -51,11 +50,23 @@ var builder = WebApplication.CreateBuilder(new WebApplicationOptions
|
||||||
EnvironmentName = enviromentName
|
EnvironmentName = enviromentName
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#region 兼容windows 服务命令行的方式
|
||||||
|
|
||||||
|
var urlsIndex = Array.IndexOf(args, "--urls");
|
||||||
|
if (urlsIndex > -1)
|
||||||
|
{
|
||||||
|
builder.WebHost.UseUrls(args[urlsIndex + 1]);
|
||||||
|
}
|
||||||
|
//
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region Ö÷»úÅäÖÃ
|
#region Ö÷»úÅäÖÃ
|
||||||
|
|
||||||
|
|
||||||
NewId.SetProcessIdProvider(new CurrentProcessIdProvider());
|
NewId.SetProcessIdProvider(new CurrentProcessIdProvider());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
builder.Host
|
builder.Host
|
||||||
.ConfigureAppConfiguration((hostContext, config) =>
|
.ConfigureAppConfiguration((hostContext, config) =>
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,9 +23,9 @@ namespace IRaCIS.Application.Services
|
||||||
public async Task<ResearchPublicationDTO> GetResearchPublication(Guid doctorId)
|
public async Task<ResearchPublicationDTO> GetResearchPublication(Guid doctorId)
|
||||||
{
|
{
|
||||||
var doctorScientificResearchInfo = await researchPublicationRepository.Where(o => o.DoctorId == doctorId)
|
var doctorScientificResearchInfo = await researchPublicationRepository.Where(o => o.DoctorId == doctorId)
|
||||||
.ProjectTo<ResearchPublicationDTO>(_mapper.ConfigurationProvider).FirstNotNullAsync();
|
.ProjectTo<ResearchPublicationDTO>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
|
||||||
|
|
||||||
return doctorScientificResearchInfo;
|
return doctorScientificResearchInfo!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue