Compare commits
No commits in common. "4613f98154d16ccfc8655e2774d7597ce0ec8924" and "02d378e0e61791757bb6f0922c8424b0d097e030" have entirely different histories.
4613f98154
...
02d378e0e6
|
|
@ -446,12 +446,6 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DeleteSingleTableQuestionMarkInDto
|
|
||||||
{
|
|
||||||
[NotDefault]
|
|
||||||
public Guid Id { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public class DeleteTableQuestionMarkInDto
|
public class DeleteTableQuestionMarkInDto
|
||||||
{
|
{
|
||||||
[NotDefault]
|
[NotDefault]
|
||||||
|
|
@ -1207,7 +1201,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public class QuestionMarkInfo
|
public class QuestionMarkInfo
|
||||||
{
|
{
|
||||||
public Guid? Id { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 问题Id
|
/// 问题Id
|
||||||
|
|
|
||||||
|
|
@ -85,33 +85,6 @@ namespace IRaCIS.Core.Application.Service
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 删除单个表格问题标记
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="inDto"></param>
|
|
||||||
/// <param name="param"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
[HttpPost]
|
|
||||||
[Route("/DeleteSingleTableQuestionMark/{param}")]
|
|
||||||
public async Task<bool> DeleteSingleTableQuestionMark(DeleteSingleTableQuestionMarkInDto inDto, string param)
|
|
||||||
{
|
|
||||||
var mark = await _readingTaskQuestionMarkRepository.Where(x => x.Id == inDto.Id).FirstNotNullAsync();
|
|
||||||
|
|
||||||
var taskid = mark.VisitTaskId;
|
|
||||||
await _readingTableQuestionAnswerRepository.BatchDeleteNoTrackingAsync(x => x.RowId == mark.RowId && x.TableQuestionId == mark.TableQuestionId);
|
|
||||||
await _readingTaskQuestionMarkRepository.DeleteFromQueryAsync(x => x.Id == inDto.Id);
|
|
||||||
var result= await _readingTaskQuestionMarkRepository.SaveChangesAsync();
|
|
||||||
|
|
||||||
await _readingCalculateService.CalculateTask(new CalculateTaskInDto()
|
|
||||||
{
|
|
||||||
IsChangeOtherTask = false,
|
|
||||||
VisitTaskId = taskid,
|
|
||||||
ComputationTrigger = (ComputationTrigger)int.Parse(param),
|
|
||||||
});
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 删除表格问题标记
|
/// 删除表格问题标记
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue