临床数据修改
parent
7a2c522ffd
commit
a7048ef08c
|
@ -7,7 +7,6 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infra.EFCore;
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Contracts
|
namespace IRaCIS.Core.Application.Contracts
|
||||||
{
|
{
|
||||||
|
@ -166,8 +165,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
[HttpDelete("{trialId:guid}/{previousHistoryId:guid}")]
|
[HttpDelete("{trialId:guid}/{previousHistoryId:guid}")]
|
||||||
public async Task<IResponseOutput> DeletePreviousHistory(Guid previousHistoryId)
|
public async Task<IResponseOutput> DeletePreviousHistory(Guid previousHistoryId)
|
||||||
{
|
{
|
||||||
var success = await _previousHistoryRepository.BatchDeleteNoTrackingAsync(t => t.Id == previousHistoryId);
|
await _previousHistoryRepository.DeleteFromQueryAsync(t => t.Id == previousHistoryId,true);
|
||||||
return ResponseOutput.Result(success);
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -191,8 +190,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
[HttpDelete("{trialId:guid}/{previousOtherId:guid}")]
|
[HttpDelete("{trialId:guid}/{previousOtherId:guid}")]
|
||||||
public async Task<IResponseOutput> DeletePreviousOther(Guid previousOtherId)
|
public async Task<IResponseOutput> DeletePreviousOther(Guid previousOtherId)
|
||||||
{
|
{
|
||||||
var success = await _previousOtherRepository.BatchDeleteNoTrackingAsync(t => t.Id == previousOtherId);
|
await _previousOtherRepository.DeleteFromQueryAsync(t => t.Id == previousOtherId,true);
|
||||||
return ResponseOutput.Result(success);
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -216,8 +215,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
[HttpDelete("{trialId:guid}/{previousSurgeryId:guid}")]
|
[HttpDelete("{trialId:guid}/{previousSurgeryId:guid}")]
|
||||||
public async Task<IResponseOutput> DeletePreviousSurgery(Guid previousSurgeryId)
|
public async Task<IResponseOutput> DeletePreviousSurgery(Guid previousSurgeryId)
|
||||||
{
|
{
|
||||||
var success = await _previousSurgeryRepository.BatchDeleteNoTrackingAsync(t => t.Id == previousSurgeryId);
|
var success = await _previousSurgeryRepository.DeleteFromQueryAsync(t => t.Id == previousSurgeryId,true);
|
||||||
return ResponseOutput.Result(success);
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{subjectVisitId:guid}")]
|
[HttpGet("{subjectVisitId:guid}")]
|
||||||
|
@ -242,8 +241,8 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public async Task<IResponseOutput> DeletePreviousPDF(Guid previousPDFId)
|
public async Task<IResponseOutput> DeletePreviousPDF(Guid previousPDFId)
|
||||||
{
|
{
|
||||||
|
|
||||||
var success = await _previousPdfRepository.BatchDeleteNoTrackingAsync(t => t.Id == previousPDFId);
|
await _previousPdfRepository.DeleteFromQueryAsync(t => t.Id == previousPDFId,true);
|
||||||
return ResponseOutput.Result(success);
|
return ResponseOutput.Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,14 +34,12 @@ namespace IRaCIS.Core.Application.Contracts
|
||||||
public bool? IsEnrollmentConfirm { get; set; }
|
public bool? IsEnrollmentConfirm { get; set; }
|
||||||
public DateTime? SubjectFirstGiveMedicineTime { get; set; }
|
public DateTime? SubjectFirstGiveMedicineTime { get; set; }
|
||||||
|
|
||||||
//public bool IsOutEnromentVisit { get; set; }
|
|
||||||
|
|
||||||
public Guid? OutPlanPreviousVisitId { get; set; }
|
public Guid? OutPlanPreviousVisitId { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//public bool IsUrgent { get; set; }
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -449,7 +449,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
foreach (var verifyItem in verify.Where(t => t.verifyType != VerifyEnum.OnlyUpdate && t.IsVerify))
|
foreach (var verifyItem in verify.Where(t => t.verifyType != VerifyEnum.OnlyUpdate && t.IsVerify))
|
||||||
{
|
{
|
||||||
if (await _dbSet.IgnoreQueryFilters().AnyAsync(verifyItem.VerifyExp).ConfigureAwait(false))
|
if (await _dbSet.AnyAsync(verifyItem.VerifyExp).ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
throw new BusinessValidationFailedException(verifyItem.VerifyMsg);
|
throw new BusinessValidationFailedException(verifyItem.VerifyMsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue