| | |
| | | |
| | | import com.yssh.entity.*; |
| | | import com.yssh.service.ICommonService; |
| | | import com.yssh.service.VocValsService; |
| | | import com.yssh.utils.StringUtils; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | @Resource |
| | | private ICommonService commonService; |
| | | |
| | | @Autowired |
| | | @Resource |
| | | private ISuYuanService suYuanService; |
| | | |
| | | @Resource |
| | | private VocValsService vocValsService; |
| | | |
| | | private final static SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHH"); |
| | | |
| | | @ApiOperation(value = "查询2d热力图数据", notes = "根据时间查询2d热力图数据") |
| | | @ApiOperationSupport(order = 1) |
| | |
| | | |
| | | return Result.OK(list); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据时间查询Voc值", notes = "根据时间查询Voc值") |
| | | @ApiOperationSupport(order = 11) |
| | | @GetMapping("/selectVocByTime") |
| | | public Result selectVocByTime(@RequestParam(value = "date", required = true) @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date date) { |
| | | List<VocVals> list = vocValsService.selectByTime(format.format(date)); |
| | | |
| | | return Result.OK(list); |
| | | } |
| | | } |