| | |
| | | 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.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.naming.ldap.PagedResultsControl; |
| | |
| | | return AjaxResult.success(maps); |
| | | } |
| | | |
| | | /** |
| | | * 获取历史数据 |
| | | */ |
| | | @GetMapping("/getHistoryData") |
| | | public AjaxResult getHistoryData(@RequestParam(value = "guid") String guid, |
| | | @RequestParam(value = "startTime") long startTime, |
| | | @RequestParam(value = "endTime") long endTime) { |
| | | List<Map<String,String>> maps = realTimeEnergyConsumptionService.getHistoryData(guid, startTime, endTime); |
| | | return AjaxResult.success(maps); |
| | | } |
| | | |
| | | } |