|
@@ -457,7 +457,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
throws IOException, Exception {
|
|
|
List<ReportSubjectRangeDTO> list = new ArrayList<ReportSubjectRangeDTO>();
|
|
|
ReportSubjectRange subject = reportSubjectRangeService.findOne(examId, subjectCode);
|
|
|
- if (subject != null) {
|
|
|
+ if (subject != null && subject.getObjectiveScoreRange()!=null) {
|
|
|
JSONArray array = getScoreRange(subject.getObjectiveScoreRange(), subject.getObjectiveScore(), subject.getRealityCount(),
|
|
|
10);
|
|
|
for (int i = 0; i < array.size(); i++) {
|
|
@@ -481,7 +481,7 @@ public class ReportServiceImpl implements ReportService {
|
|
|
throws IOException, Exception {
|
|
|
List<ReportSubjectRangeDTO> list = new ArrayList<ReportSubjectRangeDTO>();
|
|
|
ReportSubject subject = reportSubjectService.findOne(examId, subjectCode);
|
|
|
- if (subject != null) {
|
|
|
+ if (subject != null && subject.getScoreRange()!=null) {
|
|
|
JSONArray array = getScoreRange(subject.getScoreRange(), subject.getTotalScore(), subject.getRealityCount(),
|
|
|
10);
|
|
|
for (int i = 0; i < array.size(); i++) {
|