yxm
2024-07-04 56f9e4bc47c53efcfab40ca75adf8c13ca334ae2
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
package cn.gistack.sm.sjztmd.controller;
 
 
import cn.gistack.sm.sjztmd.service.ITbResAndDykeAllService;
import cn.gistack.sm.sjztmd.vo.ResAndDykeAll;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springframework.beans.factory.annotation.Autowired;
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;
 
@Slf4j
@Api(tags = "水库堤防统计")
@RestController
@RequestMapping("/sjztmd/resAndDkyeAll")
@AllArgsConstructor
public class TbResAndDykeController extends BladeController {
 
    @Autowired
    private ITbResAndDykeAllService tbProjectAllService;
 
    @GetMapping("/getStatistics")
    public R getStatistics(String code){
        List<ResAndDykeAll> list = tbProjectAllService.getStatisticsTable(code);
        return R.data(list);
    }
 
}