| New file |
| | |
| | | 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,String year){ |
| | | List<ResAndDykeAll> list = tbProjectAllService.getStatisticsTable(code,year); |
| | | return R.data(list); |
| | | } |
| | | |
| | | } |