1
0
Просмотр исходного кода

/exam/students接口增加paperType字段返回

luoshi 4 лет назад
Родитель
Сommit
610a0b3259

+ 2 - 1
stmms-web/src/main/java/cn/com/qmth/stmms/api/controller/ExamStudentController.java

@@ -133,7 +133,8 @@ public class ExamStudentController extends BaseApiController {
                 obj.accumulate("name", student.getName());
                 obj.accumulate("studentCode", student.getStudentCode());
                 obj.accumulate("packageCode", student.getPackageCode());
-                obj.accumulate("batchCode", student.getBatchCode() == null ? "" : student.getBatchCode());
+                obj.accumulate("paperType", StringUtils.trimToEmpty(student.getPaperType()));
+                obj.accumulate("batchCode", StringUtils.trimToEmpty(student.getBatchCode()));
                 obj.accumulate("sheetCount", student.getSheetCount() != null ? student.getSheetCount() : 0);
                 obj.accumulate("sliceCount", student.getSliceCount() != null ? student.getSliceCount() : 0);
                 obj.accumulate("answers", StringUtils.trimToEmpty(student.getAnswers()));