diff --git a/src/main/java/com/tenlion/twoduty/controller/api/indexlib/IndexLibController.java b/src/main/java/com/tenlion/twoduty/controller/api/indexlib/IndexLibController.java index 9249f80..cc2e217 100644 --- a/src/main/java/com/tenlion/twoduty/controller/api/indexlib/IndexLibController.java +++ b/src/main/java/com/tenlion/twoduty/controller/api/indexlib/IndexLibController.java @@ -52,13 +52,13 @@ public class IndexLibController extends DefaultBaseController { @ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) - @GetMapping("listztreeweb") - public List listZTreeWeb() { + @GetMapping("listztreeweb/{indexLibParentId}") + public List listZTreeWeb(@PathVariable("indexLibParentId") String indexLibParentId ) { Map params = requestParams(); - String indexLibParentId = "0"; + /* String indexLibParentId = "0"; if (!StringUtils.isBlank(params.get("id") == null ? null : params.get("id").toString())) { indexLibParentId = params.get("id").toString(); - } + }*/ params.put("indexLibParentId",indexLibParentId); return indexLibService.listZTreeWeb(params); }