wangwei 7 yıl önce
ebeveyn
işleme
f37d10b0a8

+ 0 - 8
examcloud-core-basic-service/src/main/java/cn/com/qmth/examcloud/core/basic/service/impl/OrgService.java

@@ -198,13 +198,6 @@ public class OrgService {
 		Org org = orgRepo.findOne(id);
 		org.setEnable(enable);
 		orgRepo.save(org);
-		if (enable == false) {
-			List<UserEntity> users = userRepo.findByOrgId(id);
-			for (UserEntity user : users) {
-				user.setEnable(false);
-				userRepo.save(user);
-			}
-		}
 		return org;
 	}
 
@@ -213,7 +206,6 @@ public class OrgService {
 			Specification<Org> specification = getSpecification(orgCriteria);
 			return orgRepo.findAll(specification, pageable);
 		}
-		// orgCriteria.setType(OrgType.SCHOOL);
 		ExampleMatcher exampleMatcher = ExampleMatcher.matching().withMatcher("name", contains())
 				.withMatcher("code", contains());
 		Example<Org> examExamStudentple = Example.of(orgCriteria, exampleMatcher);