排序测试数据

This commit is contained in:
Himit_ZH 2021-10-21 20:29:15 +08:00
parent 32023bca80
commit 3f961d4407
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ public class AdminProblemController {
QueryWrapper<ProblemCase> problemCaseQueryWrapper = new QueryWrapper<>();
problemCaseQueryWrapper.eq("pid", pid).eq("status", 0);
if (isUpload) {
problemCaseQueryWrapper.orderByAsc("input");
problemCaseQueryWrapper.last("order by length(input) asc,input asc");
}
List<ProblemCase> problemCases = problemCaseService.list(problemCaseQueryWrapper);
if (problemCases != null && problemCases.size() > 0) {

View File

@ -607,7 +607,7 @@ public class JudgeController {
QueryWrapper<JudgeCase> wrapper = new QueryWrapper<JudgeCase>().eq("submit_id", submitId)
.orderByAsc("input_data");
.last("order by length(input_data) asc,input_data asc");
// 当前所有测试点只支持 空间 时间 状态码 IO得分 输出文件名 输入文件名和错误信息提示查看而已
List<JudgeCase> judgeCaseList = judgeCaseService.list(wrapper);