wangwei 7 anni fa
parent
commit
2b000957c3

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

@@ -6,6 +6,7 @@ import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -92,7 +93,7 @@ public class OrgCloudServiceProvider extends ControllerSupport implements OrgClo
 	@ApiOperation(value = "按机构名称模糊查询机构列表")
 	@PostMapping("getOrg")
 	@Override
-	public GetOrgResp getOrg(GetOrgReq req) {
+	public GetOrgResp getOrg(@RequestBody GetOrgReq req) {
 		Long orgId = req.getOrgId();
 
 		Org org = orgRepo.findOne(orgId);

+ 1 - 0
examcloud-core-basic-starter/src/main/resources/security-exclusions.conf

@@ -19,4 +19,5 @@ regexp:.*\[getLoginUser\].*
 [${$rmp.cloud.basic}demo][getXxx,getYYY][POST]
 [${$rmp.cloud.basic}student][insertOrUpdateStudent][POST]
 [${$rmp.cloud.basic}org][getOrg][POST]
+[${$rmp.cloud.basic}student][getStudent][POST]