xieb
2023-09-01 393f16936cab37217402cca4f4c032a7819eda98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package cn.gistack.sm.sjztmd.controller;
 
import cn.gistack.sm.sjztmd.service.IAttAdBaseService;
import cn.gistack.sm.sjztmd.service.IAttBasBaseService;
import cn.gistack.sm.sjztmd.vo.AttAdBaseVO;
import cn.gistack.sm.sjztmd.vo.AttBasBaseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springblade.core.tool.node.ForestNodeMerger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import java.util.List;
 
/**
 * @PROJECT_NAME: skjcmanager
 * @DESCRIPTION:
 * @USER: aix
 * @DATE: 2023/9/1 15:36
 */
@Slf4j
@Api(tags = "中台水库")
@RestController
@RequestMapping("/sjztmd/attBas")
@AllArgsConstructor
public class AttBasBaseController extends BladeController {
 
    private final IAttBasBaseService attBasBaseService;
 
    @GetMapping("/selectAll")
    @ApiImplicitParams({
        @ApiImplicitParam(name = "code", value = "区划编号", paramType = "query", dataType = "string"),
    })
    @ApiOperation(value = "加载树列表", notes = "传入code")
    public R<List<AttBasBaseVO>> selectAll(String code) {
 
        List<AttBasBaseVO> list = attBasBaseService.lazyTree(code);
        return R.data(list);
    }
 
}