指标库新增web页面树形接口

This commit is contained in:
ly19960718 2021-04-14 14:45:11 +08:00
parent 7eb0e3cf71
commit f659a05620

View File

@ -52,13 +52,13 @@ public class IndexLibController extends DefaultBaseController {
@ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口") @ApiOperation(value = "web页面指标库树形列表", notes = "web页面指标库树形列表接口")
@ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)})
@GetMapping("listztreeweb") @GetMapping("listztreeweb/{indexLibParentId}")
public List<IndexLibZTreeDTO> listZTreeWeb() { public List<IndexLibZTreeDTO> listZTreeWeb(@PathVariable("indexLibParentId") String indexLibParentId ) {
Map<String, Object> params = requestParams(); Map<String, Object> params = requestParams();
String indexLibParentId = "0"; /* String indexLibParentId = "0";
if (!StringUtils.isBlank(params.get("id") == null ? null : params.get("id").toString())) { if (!StringUtils.isBlank(params.get("id") == null ? null : params.get("id").toString())) {
indexLibParentId = params.get("id").toString(); indexLibParentId = params.get("id").toString();
} }*/
params.put("indexLibParentId",indexLibParentId); params.put("indexLibParentId",indexLibParentId);
return indexLibService.listZTreeWeb(params); return indexLibService.listZTreeWeb(params);
} }