deason 1 жил өмнө
parent
commit
def1d5a58c

+ 4 - 2
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/StudentServiceImpl.java

@@ -436,9 +436,12 @@ public class StudentServiceImpl implements StudentService {
 
             List<String> unboundStudentCodeList = unboundStudentCodeMap.get(cur.getId());
             req.setUnboundStudentCodeList(unboundStudentCodeList);
+            if (CollectionUtils.isNotEmpty(unboundStudentCodeList)) {
+                log.warn("解绑学号!studentId:{} identityNumber:{} studentCodes:{}",
+                        cur.getId(), cur.getIdentityNumber(), StringUtils.join(unboundStudentCodeList, ","));
+            }
 
             req.setSyncType("update");
-
             dataSyncCloudService.syncStudent(req);
         }
 
@@ -446,7 +449,6 @@ public class StudentServiceImpl implements StudentService {
             studentCache.remove(cur);
         }
 
-        log.warn("解绑学号!rootOrgId:{} studentCode:{} identityNumber:{}", rootOrgId, studentCode, identityNumber);
         return studentIdList;
     }