修复bug
This commit is contained in:
parent
b7025256a1
commit
0bb73e7a0c
|
@ -19,6 +19,9 @@ import java.util.List;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("menu")
|
@RequestMapping("menu")
|
||||||
public class MenuController {
|
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');
|
||||||
/**
|
/**
|
||||||
* 服务对象
|
* 服务对象
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,7 +47,9 @@ public class SummaryServiceImpl implements SummaryService {
|
||||||
if(deviceGroup.containsKey(deviceVO.getProduct().getCode())){
|
if(deviceGroup.containsKey(deviceVO.getProduct().getCode())){
|
||||||
deviceGroup.get(deviceVO.getProduct().getCode()).add(deviceVO);
|
deviceGroup.get(deviceVO.getProduct().getCode()).add(deviceVO);
|
||||||
}else {
|
}else {
|
||||||
deviceGroup.put(deviceVO.getProduct().getCode(),List.of(deviceVO));
|
List<DeviceVO> deviceVOList1 = new ArrayList<>();
|
||||||
|
deviceVOList1.add(deviceVO);
|
||||||
|
deviceGroup.put(deviceVO.getProduct().getCode(), deviceVOList1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue