| | |
| | | */ |
| | | /*改动范围start-------------------------------------------------------------------------*/ |
| | | list.remove(0); |
| | | if (list.size() == 23) { |
| | | //if (list.size() == 23) { |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd"); |
| | | //获取全格式时间yyyy-MM-dd HH:mm:ss |
| | |
| | | datas.put("time",time1); |
| | | list.add(datas); |
| | | } |
| | | } |
| | | //} |
| | | /*改动范围end-------------------------------------------------------------------------*/ |
| | | |
| | | |
| | |
| | | } |
| | | return new ResultBean<List<Map<String,Object>>>(rList); |
| | | } |
| | | |
| | | @PostMapping("byAccountGetDevices") |
| | | public List<Device> byAccountGetDevices(@RequestBody Map<String, Object> parameters) { |
| | | String id =parameters.get("id").toString(); |
| | | List<Device> devicesList = deviceService.getDevicesByAccountId(id); |
| | | return devicesList; |
| | | } |
| | | } |