Commit 7bd8597d authored by 盖献康's avatar 盖献康

车型试验(第三个子任务): 查看按章节排序

parent da2e1325
......@@ -17,10 +17,7 @@ import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
import java.util.stream.Collectors;
/**
......@@ -84,6 +81,8 @@ public class StrategyModelTestTaskNew implements StrategyModelTestTask, Initiali
list.add(modelTestTaskViewResponse);
}
}
// 最后按章节号升序
list.sort(Comparator.comparing(ModelTestTaskViewResponse::getChapter));
return list;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment