fix bug on add problem

This commit is contained in:
Himit_ZH 2021-04-21 23:39:32 +08:00
parent 760aa4f61b
commit 51a178331d
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ public class ProblemServiceImpl extends ServiceImpl<ProblemMapper, Problem> impl
}
boolean addLangToProblemResult = problemLanguageService.saveOrUpdateBatch(problemLanguageList);
boolean addCasesToProblemResult = false;
boolean addCasesToProblemResult = true;
// 为新的题目添加对应的case
if (problemDto.getIsUploadTestCase()) { // 如果是选择上传测试文件的则需要遍历对应文件夹读取数据写入数据库
int sumScore = 0;