| | |
| | | @RequestMapping("/suYuan") |
| | | @SuppressWarnings("rawtypes") |
| | | public class SuYuanController { |
| | | |
| | | |
| | | @Autowired |
| | | private ISuYuanService suYuanService; |
| | | |
| | |
| | | @ApiOperationSupport(order = 1) |
| | | @GetMapping("/get2d") |
| | | public Result get2d( |
| | | @RequestParam(value = "date", required = true)@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date){ |
| | | List<SuYuan2d> list = suYuanService.selectSuYuan2d(date); |
| | | return Result.OK(list); |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date) { |
| | | List<SuYuan2d> list = suYuanService.selectSuYuan2d(date); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询3d热力图数据", notes = "根据时间查询3d热力图数据") |
| | | @ApiOperationSupport(order = 2) |
| | | @GetMapping("/get3d") |
| | | public Result get3d( |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date){ |
| | | List<SuYuan3d> list = suYuanService.selectSuYuan3d(name, date); |
| | | return Result.OK(list); |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date) { |
| | | List<SuYuan3d> list = suYuanService.selectSuYuan3d(name, date); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询溯源100热力图数据", notes = "根据时间查询溯源100热力图数据,result返回值中data对应值为热力图数据,feedbackId为反馈主键编号,在进行反馈中需要传递") |
| | | @ApiOperationSupport(order = 3) |
| | | @GetMapping("/get100") |
| | | public Result get100( |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ){ |
| | | return Result.OK(suYuanService.selectSuYuan100(name, date)); |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ) { |
| | | return Result.OK(suYuanService.selectSuYuan100(name, date)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询溯源200热力图数据", notes = "根据时间查询溯源200热力图数据,result返回值中data对应值为热力图数据,feedbackId为反馈主键编号,在进行反馈中需要传递") |
| | | @ApiOperationSupport(order = 4) |
| | | @GetMapping("/get200") |
| | | public Result get200( |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ){ |
| | | return Result.OK(suYuanService.selectSuYuan200(name, date)); |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ) { |
| | | return Result.OK(suYuanService.selectSuYuan200(name, date)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查询溯源300热力图数据", notes = "根据时间查询溯源300热力图数据,result返回值中data对应值为热力图数据,feedbackId为反馈主键编号,在进行反馈中需要传递") |
| | | @ApiOperationSupport(order = 5) |
| | | @GetMapping("/get300") |
| | | public Result get300( |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ){ |
| | | return Result.OK(suYuanService.selectSuYuan300(name, date)); |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ) { |
| | | return Result.OK(suYuanService.selectSuYuan300(name, date)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询溯源500热力图数据", notes = "根据时间查询溯源500热力图数据,result返回值中data对应值为热力图数据,feedbackId为反馈主键编号,在进行反馈中需要传递") |
| | | @ApiOperationSupport(order = 6) |
| | | @GetMapping("/get500") |
| | | public Result get500( |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ){ |
| | | return Result.OK(suYuanService.selectSuYuan500(name, date)); |
| | | @RequestParam(value = "name", required = true) String name, |
| | | @RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date |
| | | ) { |
| | | return Result.OK(suYuanService.selectSuYuan500(name, date)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "获取所有监测数据", notes = "获取所有监测数据") |
| | | @ApiOperationSupport(order = 7) |
| | | @GetMapping("/query/{name}") |
| | | public Result getMonitorData(@PathVariable("name") String name){ |
| | | List<SuYuanMonitorData> list = suYuanService.getMonitorData(name); |
| | | return Result.OK(list); |
| | | public Result getMonitorData(@PathVariable("name") String name) { |
| | | List<SuYuanMonitorData> list = suYuanService.getMonitorData(name); |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新Vocs名称", notes = "更新Vocs名称") |
| | | @ApiOperationSupport(order = 7) |
| | | @GetMapping("/updateVocsName") |
| | | public Result updateVocsName(@RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date, |
| | | @RequestParam(value = "id", required = true) String id, |
| | | @RequestParam(value = "vocsName", required = true) String vocsName |
| | | ) { |
| | | return Result.OK(suYuanService.updateVocsName(date, id, vocsName)); |
| | | } |
| | | } |