瀏覽代碼

修改考生API接口返回字段

luoshi 4 年之前
父節點
當前提交
d6ecb8399a
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      stmms-web/src/main/java/cn/com/qmth/stmms/api/controller/ExamStudentController.java

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

@@ -127,7 +127,7 @@ public class ExamStudentController extends BaseApiController {
                 obj.accumulate("id", student.getId());
                 obj.accumulate("id", student.getId());
                 obj.accumulate("schoolId", student.getSchoolId());
                 obj.accumulate("schoolId", student.getSchoolId());
                 obj.accumulate("examNumber", student.getExamNumber());
                 obj.accumulate("examNumber", student.getExamNumber());
-                obj.accumulate("campusCode", "0");
+                obj.accumulate("campusCode", "");
                 obj.accumulate("campusName", StringUtils.trimToEmpty(student.getCampusName()));
                 obj.accumulate("campusName", StringUtils.trimToEmpty(student.getCampusName()));
                 obj.accumulate("subjectCode", student.getSubjectCode());
                 obj.accumulate("subjectCode", student.getSubjectCode());
                 obj.accumulate("subjectName", student.getSubjectName());
                 obj.accumulate("subjectName", student.getSubjectName());
@@ -147,10 +147,13 @@ public class ExamStudentController extends BaseApiController {
                         student.getObjectiveScore() == null ? "" : format.format(student.getObjectiveScore()));
                         student.getObjectiveScore() == null ? "" : format.format(student.getObjectiveScore()));
                 obj.accumulate("subjectiveScore",
                 obj.accumulate("subjectiveScore",
                         student.getSubjectiveScore() == null ? "" : format.format(student.getSubjectiveScore()));
                         student.getSubjectiveScore() == null ? "" : format.format(student.getSubjectiveScore()));
+                obj.accumulate("subjectiveStatus", student.getSubjectiveStatus().toString());
                 obj.accumulate("examSite", StringUtils.trimToEmpty(student.getExamSite()));
                 obj.accumulate("examSite", StringUtils.trimToEmpty(student.getExamSite()));
                 obj.accumulate("examRoom", StringUtils.trimToEmpty(student.getExamRoom()));
                 obj.accumulate("examRoom", StringUtils.trimToEmpty(student.getExamRoom()));
                 obj.accumulate("remark", StringUtils.trimToEmpty(student.getRemark()));
                 obj.accumulate("remark", StringUtils.trimToEmpty(student.getRemark()));
-                obj.accumulate("campusCode", "");
+                obj.accumulate("college", StringUtils.trimToEmpty(student.getCollege()));
+                obj.accumulate("className", StringUtils.trimToEmpty(student.getClassName()));
+                obj.accumulate("teacher", StringUtils.trimToEmpty(student.getTeacher()));
 
 
                 try {
                 try {
                     if (withScoreDetail != null && withScoreDetail.booleanValue()) {
                     if (withScoreDetail != null && withScoreDetail.booleanValue()) {