Commit 72f0d53f authored by alex yao's avatar alex yao

修改异常信息

parent a406ab1b
......@@ -52,7 +52,7 @@ public class ExaminationRestImpl implements ExaminationRest {
Assert.notEmpty(generateExaminationDto.getQuestionType());
Assert.notNull(generateExaminationDto.getN());
Assert.isTrue(generateExaminationDto.getN() <= 20, "总题数不可大于20题");
Assert.isTrue(generateExaminationDto.getN() <= generateExaminationDto.getTotalScore() ,"总题数不大于总分数");
Assert.isTrue(generateExaminationDto.getN() <= generateExaminationDto.getTotalScore() ,"总题数不大于总分数");
UserBaseEntity currentUser = BlContext.getCurrentUser();
GenerateExaminationEntity generateExaminationEntity = new GenerateExaminationEntity();
......
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