修复bug

This commit is contained in:
qinjie 2024-11-28 03:12:34 +08:00
parent b7025256a1
commit 0bb73e7a0c
2 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,9 @@ import java.util.List;
@RestController
@RequestMapping("menu")
public class MenuController {
// INSERT INTO `gaswellwatch`.`menu` (`id`, `parent`, `name`, `code`, `icon`, `sort`, `extra`, `create_time`, `update_time`) VALUES (1834501113332629504, 0, '日志管理', 'logManage', 'Document', 7, '{\"url\":\"logManage\",\"menuType\":{\"key\":\"4\",\"value\":\"\"}}', '2024-09-13 15:55:23', '2024-11-27 18:00:57');
// INSERT INTO `gaswellwatch`.`menu` (`id`, `parent`, `name`, `code`, `icon`, `sort`, `extra`, `create_time`, `update_time`) VALUES (1834501183620775936, 0, '提醒记录', 'recordingManage', 'Location', 8, '{\"url\":\"recordingManage\",\"menuType\":{\"key\":\"4\",\"value\":\"\"}}', '2024-09-13 15:55:40', '2024-11-27 18:01:01');
/**
* 服务对象
*/

View File

@ -47,7 +47,9 @@ public class SummaryServiceImpl implements SummaryService {
if(deviceGroup.containsKey(deviceVO.getProduct().getCode())){
deviceGroup.get(deviceVO.getProduct().getCode()).add(deviceVO);
}else {
deviceGroup.put(deviceVO.getProduct().getCode(),List.of(deviceVO));
List<DeviceVO> deviceVOList1 = new ArrayList<>();
deviceVOList1.add(deviceVO);
deviceGroup.put(deviceVO.getProduct().getCode(), deviceVOList1);
}
}