feat:配置修改

law-v2025-01
wangxy 3 months ago
parent 26fabdb156
commit 9e30307559

@ -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);
}
/**

Loading…
Cancel
Save