| | |
| | | |
| | | import javax.validation.Valid; |
| | | import java.time.LocalDateTime; |
| | | import java.time.Year; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | */ |
| | | @PostMapping("/screen") |
| | | @ApiOperation("大屏数据") |
| | | public Result<ScreenVO> screen(@RequestParam(value = "county",required = false)Integer county) { |
| | | return Result.success( dataService.screen(county==null?0:county)); |
| | | public Result<ScreenVO> screen(@RequestParam(value = "county",required = false)Integer county, |
| | | @RequestParam(value = "year",required = false)Integer year) { |
| | | if (year == null){ |
| | | year = Year.now().getValue(); |
| | | } |
| | | return Result.success( dataService.screen(county==null?0:county,year)); |
| | | } |
| | | /** |
| | | * 补贴总人数 |
| | |
| | | @GetMapping("/getAssistiveDeviceTotal") |
| | | @ApiOperation("补贴总人数") |
| | | public Result<Integer> getAssistiveDeviceTotal(@RequestParam(value = "county",required = false)Integer county,@RequestParam("year") Integer year) { |
| | | |
| | | return Result.success( dataService.getAssistiveDeviceTotal(county==null?0:county,year)); |
| | | } |
| | | |