소스 검색

修改用照片上传工具上传的照片没有记录上传人和类型的BUG

chenken 7 년 전
부모
커밋
920feb6db8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      core-api/src/main/java/cn/com/qmth/examcloud/service/core/api/StudentFaceInfoApi.java

+ 2 - 2
core-api/src/main/java/cn/com/qmth/examcloud/service/core/api/StudentFaceInfoApi.java

@@ -92,16 +92,16 @@ public class StudentFaceInfoApi {
         StudentFaceInfo studentFaceInfo4Update = studentFaceInfoRepo.findByStudentId(studentFaceInfo.getStudent().getId());
         LOG.info("根据学生id" + studentFaceInfo.getStudent().getId() + "找到照片信息:" + studentFaceInfo4Update.getId());
         studentFaceInfo4Update.setUpdateTime(new Date());
+        studentFaceInfo4Update.setUpdateUser(studentFaceInfo.getUpdateUser());
+        studentFaceInfo4Update.setCreateType(studentFaceInfo.getCreateType());
         studentFaceInfo4Update.setPhotoMD5(studentFaceInfo.getPhotoMD5());
         studentFaceInfo4Update.setFaceToken(studentFaceInfo.getFaceToken());
         studentFaceInfo4Update.setFaceSetToken(studentFaceInfo.getFaceSetToken());
-
         Student student = studentRepo.findOne(studentFaceInfo.getStudent().getId());
         if(student != null){
             student.setPhotoPath(student.getIdentityNumber()+"/"+studentFaceInfo.getPhotoMD5());
             studentRepo.save(student);
         }
-
         return new ResponseEntity(studentFaceInfoRepo.save(studentFaceInfo4Update), HttpStatus.OK);
     }