linwe
2024-05-29 c10d6358b9f014375a13821465bc978d0c0da22e
src/main/java/org/springblade/modules/system/controller/DictBizController.java
@@ -115,8 +115,8 @@
   @GetMapping("/tree")
   @ApiOperationSupport(order = 5)
   @ApiOperation(value = "树形结构", notes = "树形结构")
   public R<List<DictBizVO>> tree() {
      List<DictBizVO> tree = dictService.tree();
   public R<List<DictBizVO>> tree(@RequestParam(value = "code", required = false) String code) {
      List<DictBizVO> tree = dictService.tree(code);
      return R.data(tree);
   }
@@ -161,7 +161,7 @@
   @ApiOperationSupport(order = 8)
   @ApiOperation(value = "获取字典", notes = "获取字典")
   public R<List<DictBiz>> dictionary(String code) {
      List<DictBiz> tree = dictService.getList(code);
      List<DictBiz> tree = dictService.getList(code,null);
      return R.data(tree);
   }
@@ -172,7 +172,7 @@
   @ApiOperationSupport(order = 9)
   @ApiOperation(value = "获取字典树", notes = "获取字典树")
   public R<List<DictBizVO>> dictionaryTree(String code) {
      List<DictBiz> tree = dictService.getList(code);
      List<DictBiz> tree = dictService.getList(code,null);
      return R.data(DictBizWrapper.build().listNodeVO(tree));
   }