修改
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user