使用js对数组[{
  "id": 0,
  "name": "负极",
  "childNum": 1,
  "childOrgIds": [
      7,
      8,
      9,
      10
  ],
  "children": [
      {
          "id": 1,
          "topId": 1,
          "pid": 0,
          "level": null,
          "name": "七年级",
          "tel": null,
          "email": null,
          "status": 1,
          "createTime": "2023-04-13 09:33:17",
          "updateTime": "2023-04-13 09:45:10",
          "attr": null,
          "type": 10,
          "year": "2022",
          "graduate": 1,
          "childNum": 4,
          "children": [
              {
                  "id": 7,
                  "topId": 1,
                  "pid": 1,
                  "level": null,
                  "name": "1班",
                  "tel": null,
                  "email": null,
                  "status": 1,
                  "createTime": "2023-04-13 10:00:05",
                  "updateTime": "2023-04-13 12:22:31",
                  "attr": null,
                  "type": 100,
                  "year": "2015",
                  "graduate": 1,
                  "childNum": 0,
                  "children": null,
                  "childOrgIds": null
              },
              {
                  "id": 8,
                  "topId": 1,
                  "pid": 1,
                  "level": null,
                  "name": "2班",
                  "tel": null,
                  "email": null,
                  "status": 1,
                  "createTime": "2023-04-13 10:27:34",
                  "updateTime": "2023-04-13 12:22:32",
                  "attr": null,
                  "type": 100,
                  "year": "2015",
                  "graduate": 1,
                  "childNum": 0,
                  "children": null,
                  "childOrgIds": null
              },
              {
                  "id": 9,
                  "topId": 1,
                  "pid": 1,
                  "level": null,
                  "name": "3班",
                  "tel": null,
                  "email": null,
                  "status": 1,
                  "createTime": "2023-04-14 01:49:18",
                  "updateTime": "2023-04-14 01:49:18",
                  "attr": null,
                  "type": 100,
                  "year": "2023",
                  "graduate": 1,
                  "childNum": 0,
                  "children": null,
                  "childOrgIds": null
              },
              {
                  "id": 10,
                  "topId": 1,
                  "pid": 1,
                  "level": null,
                  "name": "4班",
                  "tel": null,
                  "email": null,
                  "status": 1,
                  "createTime": "2023-04-17 10:38:35",
                  "updateTime": "2023-04-17 10:38:35",
                  "attr": null,
                  "type": 100,
                  "year": "2023",
                  "graduate": 1,
                  "childNum": 0,
                  "children": null,
                  "childOrgIds": null
              }
          ],
          "childOrgIds": [
              7,
              8,
              9,
              10
          ]
      }
  ]
}]去除不包含id为7或9的所有子类及父类元素 保持原数组结构