소스 검색

优化删除

夏文涛 6 달 전
부모
커밋
dc41bbc401
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/template/controller/SmartUserController.java

+ 1 - 1
src/main/java/com/template/controller/SmartUserController.java

@@ -8819,7 +8819,7 @@ public class SmartUserController implements SmartUserControllerAPI {
                     smartFamilyIndexService.deleteSmartFamilyByCardNo(user.getCardNo());
                 }
 
-            } else if (user.getIdentityId().intValue() == eIdentityStatu.Teacher.getValue()) {
+            } else if (user.getIdentityId().intValue() != eIdentityStatu.Parent.getValue() && user.getIdentityId().intValue() != eIdentityStatu.Student.getValue()) {
 
                 if (ObjectUtils.isNotEmpty(user.getDuties()) && user.getDuties().intValue() == eDuties.ClassTeacher.getValue()) {
                     if (user.getSchoolClass() == null) {