diff --git a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/TheoryTestServiceImpl.java b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/TheoryTestServiceImpl.java index c403e98..8aba520 100644 --- a/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/TheoryTestServiceImpl.java +++ b/src/main/java/com/sztzjy/financial_bigdata/service/stu/impl/TheoryTestServiceImpl.java @@ -236,7 +236,7 @@ public class TheoryTestServiceImpl implements ITheoryTestService { } else { stuError.setJudgeIds(String.valueOf(theoryTestDto.getJudgeErrorIds())); } - errorMapper.updateByPrimaryKey(stuError); + errorMapper.updateByPrimaryKeySelective(stuError); } UpdateTheoryRecord(theoryTestDto.getUserId(), theoryTestDto.getScore(), theoryTestDto.getExamDuration()); return i;