修改
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
he 2025-07-23 16:32:04 +08:00
parent 3f6e81bc3e
commit 469e7cb49b
1 changed files with 10 additions and 0 deletions

View File

@ -342,6 +342,16 @@ namespace IRaCIS.Core.Application.Service
[HttpPost]
public async Task<IResponseOutput> SubmitCustomTag(ReadingCustomTagDto inDto)
{
if (inDto.Id == null&&inDto.MarkId!=null)
{
var oldMark = await _readingTaskQuestionMarkRepository.Where(x => x.MarkId == inDto.MarkId && x.QuestionId == null).FirstOrDefaultAsync();
if( oldMark != null)
{
inDto.Id = oldMark.Id;
}
}
var entity = await _readingTaskQuestionMarkRepository.InsertOrUpdateAsync(inDto, true);
return ResponseOutput.Ok(entity.Id.ToString());
}