|
|
|
@ -48,13 +48,13 @@ public class LawController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@ApiOperation("类别树")
|
|
|
|
|
@GetMapping("/getTree")
|
|
|
|
|
public List<SysColumnVO> getTree(@RequestParam(required = false, defaultValue = "0") String parentId) {
|
|
|
|
|
public R<List<SysColumnVO>> getTree(@RequestParam(required = false, defaultValue = "0") String parentId) {
|
|
|
|
|
LambdaQueryWrapper<SysColumn> tagWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
tagWrapper.eq(SysColumn::getParentId, parentId);
|
|
|
|
|
List<SysColumn> datas = columnService.list(tagWrapper);
|
|
|
|
|
List<SysColumnVO> tagTreeVOList = new ArrayList<>(Convert.toList(SysColumnVO.class, datas));
|
|
|
|
|
tagTreeVOList.forEach(this::buildChildren);
|
|
|
|
|
return tagTreeVOList;
|
|
|
|
|
return R.ok(tagTreeVOList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|