|
@@ -166,10 +166,11 @@ public class StudentController extends ControllerSupport {
|
|
|
StudentCacheBean student = CacheHelper.getStudent(accessUser.getUserId());
|
|
|
Long orgId = student.getOrgId();
|
|
|
predicates.add(cb.equal(root.get("orgId"), orgId));
|
|
|
+ } else {
|
|
|
+ predicates.add(cb.equal(root.get("orgId"), -1));
|
|
|
}
|
|
|
} else if (!isSuperAdmin()) {
|
|
|
if (!allStudentData) {
|
|
|
- // 查询不到数据
|
|
|
predicates.add(cb.equal(root.get("orgId"), -1));
|
|
|
}
|
|
|
}
|
|
@@ -224,6 +225,7 @@ public class StudentController extends ControllerSupport {
|
|
|
OrgEntity.class);
|
|
|
if (null != org) {
|
|
|
bean.setOrgName(org.getName());
|
|
|
+ bean.setOrgCode(org.getCode());
|
|
|
}
|
|
|
}
|
|
|
|