Ver código fonte

提交基础信息代码

chenken 7 anos atrás
pai
commit
11f178ec7b

+ 2 - 1
examcloud-core-basic-api-provider/src/main/java/cn/com/qmth/examcloud/service/core/api/OrgApi.java

@@ -113,7 +113,8 @@ public class OrgApi extends ControllerSupport{
         cn.com.qmth.examcloud.commons.web.security.bean.User accessUser = getAccessUser();
         if(accessUser != null){
             if(accessUser.getRootOrgId().longValue() != accessUser.getOrgId().longValue()){
-                return new ResponseEntity(orgRepo.findById(parentId), HttpStatus.OK);
+            	return new ResponseEntity(orgRepo.findById(accessUser.getOrgId()), HttpStatus.OK);
+               // return new ResponseEntity(orgRepo.findById(parentId), HttpStatus.OK);
             }
         }
         return new ResponseEntity(orgRepo.findByParentId(parentId), HttpStatus.OK);