Uat_Study
he 2022-08-04 16:57:24 +08:00
parent cc77da83c6
commit 41d3d785b8
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ namespace IRaCIS.Core.Application.Contracts
{
await VerifyIsQCConfirmedAsync(trialId);
var maxShowOrder = await _trialQcQuestionRepository.Where(x => x.TrialId == trialId).MaxAsync(x => x.ShowOrder);
var maxShowOrder = await _trialQcQuestionRepository.Where(x => x.TrialId == trialId).OrderByDescending(x=>x.ShowOrder).Select(x => x.ShowOrder).FirstOrDefaultAsync();
batchList.ForEach(x =>
{
x.ShowOrder= maxShowOrder++;