魏熙美 6 years ago
parent
commit
acc6c74e62

+ 3
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/BuildingTreeController.java View File

49
 	@GetMapping(value = "/trees")
49
 	@GetMapping(value = "/trees")
50
 	@ApiImplicitParams({
50
 	@ApiImplicitParams({
51
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
51
 			@ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
52
-			@ApiImplicitParam(paramType = "body", dataTypeClass = String.class, name = "id", value = "当前节点id(查期时ID为空)")
52
+			@ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "id", value = "当前节点id(查期时ID为空)")
53
 	})
53
 	})
54
 	public ResponseBean getTreeList(@RequestParam(value = "id", required = false) Integer id,@RequestParam("treeType") String treeType,HttpSession session){
54
 	public ResponseBean getTreeList(@RequestParam(value = "id", required = false) Integer id,@RequestParam("treeType") String treeType,HttpSession session){
55
-		ResponseBean responseBean = new ResponseBean();UserElement userElement = getUserElement(session);
55
+		ResponseBean responseBean = new ResponseBean();
56
+		UserElement userElement = getUserElement(session);
56
 
57
 
57
 		responseBean = buildingTreeService.getTreeList(userElement.getCommunityId(),id,treeType);
58
 		responseBean = buildingTreeService.getTreeList(userElement.getCommunityId(),id,treeType);
58
 		return responseBean;
59
 		return responseBean;