|
|
|
@ -137,10 +137,11 @@ public class StuConceptBlockServiceImpl implements StuConceptBlockService {
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
public void hashLearningAssessmentScore(StuLearningAssessmentScoreDTO stuLearningAssessmentScoreDTO) {
|
|
|
|
|
//查询做题记录
|
|
|
|
|
StuAssessmentQuestionDetailsExample detailsExample = new StuAssessmentQuestionDetailsExample();
|
|
|
|
|
detailsExample.createCriteria().andUserIdEqualTo(stuLearningAssessmentScoreDTO.getUserId());
|
|
|
|
|
List<StuAssessmentQuestionDetails> stuAssessmentQuestionDetails = stuAssessmentQuestionDetailsMapper.selectByExample(detailsExample);
|
|
|
|
|
if (stuAssessmentQuestionDetails.size() != 0) {
|
|
|
|
|
if (!stuAssessmentQuestionDetails.isEmpty()) {
|
|
|
|
|
StuLearningAssessmentExample example1 = new StuLearningAssessmentExample();
|
|
|
|
|
StuLearningAssessmentExample.Criteria criteria1 = example1.createCriteria();
|
|
|
|
|
criteria1.andModuleEqualTo(stuLearningAssessmentScoreDTO.getModule());
|
|
|
|
@ -226,9 +227,9 @@ public class StuConceptBlockServiceImpl implements StuConceptBlockService {
|
|
|
|
|
details.setModule(stuLearningAssessmentScoreDTO.getModule());
|
|
|
|
|
if (saw.equals(string)) {
|
|
|
|
|
details.setRightOrWrong("正确");
|
|
|
|
|
count++;
|
|
|
|
|
} else {
|
|
|
|
|
details.setRightOrWrong("错误");
|
|
|
|
|
count++;
|
|
|
|
|
}
|
|
|
|
|
stuAssessmentQuestionDetailsMapper.insert(details);
|
|
|
|
|
}
|
|
|
|
|