Browse Source

保存答案时空指针

sd
zhizhi wu 4 years ago
parent
commit
c721c068f6
  1. 2
      ht/src/main/java/com/ccsens/ht/service/QuestionService.java

2
ht/src/main/java/com/ccsens/ht/service/QuestionService.java

@ -304,7 +304,7 @@ public class QuestionService implements IQuestionService {
return; return;
} }
Integer maxSort = htQuestionDao.selectMaxSort(question.getEvaluationCode()); Integer maxSort = htQuestionDao.selectMaxSort(question.getEvaluationCode());
if (question.getSort() != null && question.getSort().intValue() >= maxSort) { if (question.getSort() != null && maxSort != null && question.getSort().intValue() >= maxSort) {
report.setShowStatus(Constant.Ht.Report.SHOW_HISTORY); report.setShowStatus(Constant.Ht.Report.SHOW_HISTORY);
htPatientReportMapper.updateByPrimaryKeySelective(report); htPatientReportMapper.updateByPrimaryKeySelective(report);
} }

Loading…
Cancel
Save