deason 1 year ago
parent
commit
46ff0e8491

+ 6 - 3
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/SyncCloudServiceProvider.java

@@ -16,6 +16,8 @@ import cn.com.qmth.examcloud.web.support.ControllerSupport;
 import com.google.common.collect.Lists;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -35,9 +37,8 @@ import java.util.List;
 @RequestMapping("${$rmp.cloud.oe}/exam/dataSync")
 public class SyncCloudServiceProvider extends ControllerSupport implements HandleSyncCloudService {
 
-    /**
-     *
-     */
+    private static final Logger log = LoggerFactory.getLogger(SyncCloudServiceProvider.class);
+
     private static final long serialVersionUID = -4093980356473146740L;
 
     @Autowired
@@ -67,6 +68,8 @@ public class SyncCloudServiceProvider extends ControllerSupport implements Handl
                 if (examStudent != null && (examStudent.getFinished() == null || !examStudent.getFinished())) {
                     examStudentRepo.delete(examStudent);
                     examStudentCache.remove(examStudent.getId());
+                    log.warn("删除考生信息成功!!studentId:{} studentCode:{} identityNumber:{} ew-examStudentId:{} oe-examStudentId:{} ",
+                            examStudent.getStudentId(), examStudent.getStudentCode(), examStudent.getIdentityNumber(), examStudent.getExamStudentId(), examStudent.getId());
                 }
             } else if ("update".equals(req.getSyncType())) {
                 ExamStudentInfo examStudent = ExamStudentBeanConvert.of(req);