国产xxxx99真实实拍_久久不雅视频_高清韩国a级特黄毛片_嗯老师别我我受不了了小说

資訊專欄INFORMATION COLUMN

問:在指定的JSON數據中(最外層是數組)根據指定條件拿到匹配到的結果

justjavac / 3107人閱讀

摘要:某某市澤國區推薦二胎查收茶水草兩個哈哈啊啊測試平行記賬啊啊啊測試不是平行記賬啊啊啊按時吃打算大薩達國家體育總部門經濟司國家體育總部門測試區劃他他他行政數據雷霆崖烈焰是剖切新會計制度期末業務張三事業數據啊啊測試某某市澤國區財政部門測試行政測試

</>復制代碼

  1. let carr = [{
  2. "code": "000",
  3. "agyTypeCode": "1",
  4. "name": "某某市澤國區",
  5. "pid": null,
  6. "id": "21sadasdsa45dsadsa1w11ssdsw55wsd"
  7. }, {
  8. "code": "000001",
  9. "agyTypeCode": "REGION",
  10. "children": [{
  11. "code": "01",
  12. "agyTypeCode": "1",
  13. "children": [{
  14. "code": "0101",
  15. "agyTypeCode": "1",
  16. "children": [{
  17. "finChfName": "推薦",
  18. "isPairAc": 1,
  19. "code": "0008",
  20. "name": "二胎",
  21. "agyCode": "0101",
  22. "id": "24d0cb01b02211e8b1528dc623111881",
  23. "acsCode": "001"
  24. }, {
  25. "finChfName": "查收",
  26. "isPairAc": 0,
  27. "code": "0009",
  28. "name": "茶水草",
  29. "agyCode": "0101",
  30. "id": "8ce00b71b02211e8b1528dc623111881",
  31. "acsCode": "003"
  32. }, {
  33. "finChfName": "兩個",
  34. "isPairAc": 1,
  35. "code": "0010",
  36. "name": "O(∩_∩)O哈哈~",
  37. "agyCode": "0101",
  38. "id": "12d2f801b02311e8bd661323180bdf18",
  39. "acsCode": "001"
  40. }, {
  41. "finChfName": "啊啊",
  42. "isPairAc": 1,
  43. "code": "0013",
  44. "name": "測試平行記賬",
  45. "agyCode": "0101",
  46. "id": "b29c9e90c07711e8bef6315abdfc5989",
  47. "acsCode": "001"
  48. }, {
  49. "finChfName": "啊啊啊",
  50. "isPairAc": 0,
  51. "code": "0014",
  52. "name": "測試不是平行記賬",
  53. "agyCode": "0101",
  54. "id": "e9830841c07711e8a4682ddcca113e60",
  55. "acsCode": "002"
  56. }, {
  57. "finChfName": "啊啊啊",
  58. "isPairAc": 0,
  59. "code": "0015",
  60. "name": "按時吃",
  61. "agyCode": "0101",
  62. "id": "f8d46e01c07811e8aa1929a828257f4d",
  63. "acsCode": "002"
  64. }, {
  65. "finChfName": "打算",
  66. "isPairAc": 1,
  67. "code": "0017",
  68. "name": "大薩達",
  69. "agyCode": "0101",
  70. "id": "7e7a9a41c16211e887ac6329230785bc",
  71. "acsCode": "001"
  72. }],
  73. "name": "國家體育總部門經濟司",
  74. "pid": "f514a5a7e0d14e13aae98e47ec369a97",
  75. "id": "b9c8b045fb3848c2ae3a7dc44e0db17b"
  76. }],
  77. "name": "國家體育總部門",
  78. "pid": "ee22f49ae9c1400599f5d52acbbaa006",
  79. "id": "f514a5a7e0d14e13aae98e47ec369a97"
  80. }],
  81. "name": "測試區劃",
  82. "pid": null,
  83. "id": "ee22f49ae9c1400599f5d52acbbaa006"
  84. }, {
  85. "code": "009",
  86. "agyTypeCode": "1",
  87. "children": [{
  88. "finChfName": "他他他",
  89. "isPairAc": 0,
  90. "code": "002",
  91. "name": "行政數據",
  92. "agyCode": "009",
  93. "id": "24767c81349011e8aff46ff006323009",
  94. "acsCode": "002"
  95. }, {
  96. "finChfName": "雷霆崖烈焰",
  97. "isPairAc": 1,
  98. "code": "0051",
  99. "name": "是",
  100. "agyCode": "009",
  101. "id": "c98158e17f6211e88778c177655f0ba3",
  102. "acsCode": "001"
  103. }, {
  104. "finChfName": "剖切",
  105. "isPairAc": 1,
  106. "code": "0053",
  107. "name": "新會計制度(期末業務)",
  108. "agyCode": "009",
  109. "id": "2c95d8c1803511e89a37851b1a8b5408",
  110. "acsCode": "001"
  111. }, {
  112. "finChfName": "張三",
  113. "isPairAc": 1,
  114. "code": "0121",
  115. "name": "事業數據",
  116. "agyCode": "009",
  117. "id": "80d0a7e1cbd911e8bd4bd1c35525136a",
  118. "acsCode": "001"
  119. }, {
  120. "finChfName": "啊啊",
  121. "isPairAc": 1,
  122. "code": "0128",
  123. "name": "測試",
  124. "agyCode": "009",
  125. "id": "e4700fa1d5e011e8b887a9873dfd9ff1",
  126. "acsCode": "001"
  127. }],
  128. "name": "某某市澤國區財政部門",
  129. "pid": "ee22f49ae9c1400599f5d52acbbaa010",
  130. "id": "ee22f49ae9c1400599f5d52acbb88009"
  131. }, {
  132. "code": "010",
  133. "agyTypeCode": "AGEN",
  134. "children": [{
  135. "finChfName": "測試",
  136. "isPairAc": 1,
  137. "code": "0001",
  138. "name": "行政",
  139. "agyCode": "010",
  140. "id": "15fe5ea07f6011e89490b3fa58ca1a1f",
  141. "acsCode": "001"
  142. }, {
  143. "finChfName": "測試",
  144. "isPairAc": 1,
  145. "code": "0002",
  146. "name": "測試",
  147. "agyCode": "010",
  148. "id": "2e2bd9507ff911e8bd8ce5ebdd3691a4",
  149. "acsCode": "001"
  150. }, {
  151. "finChfName": "嗯",
  152. "isPairAc": 1,
  153. "code": "0007",
  154. "name": "測試724",
  155. "agyCode": "010",
  156. "id": "1c4c07718f1511e89b3fe363a3d40d6b",
  157. "acsCode": "001"
  158. }, {
  159. "finChfName": "孫振生",
  160. "isPairAc": 0,
  161. "code": "002",
  162. "name": "行政數據",
  163. "agyCode": "010",
  164. "id": "24767c81349011e8aff46ff006323010",
  165. "acsCode": "002"
  166. }],
  167. "name": "某某市澤國區信訪部門",
  168. "pid": "ee22f49ae9c1400599f5d52acbbaa010",
  169. "id": "ee22f49ae9c1400599f5d52acbb88010"
  170. }, {
  171. "code": "022",
  172. "agyTypeCode": "AGEN",
  173. "children": [{
  174. "finChfName": "楚云飛",
  175. "isPairAc": 1,
  176. "code": "0002",
  177. "name": "地區數據",
  178. "agyCode": "022",
  179. "id": "663982b0831f11e88a4d05ce24bfba35",
  180. "acsCode": "001"
  181. }, {
  182. "finChfName": "啊啊",
  183. "isPairAc": 1,
  184. "code": "0003",
  185. "name": "測試",
  186. "agyCode": "022",
  187. "id": "17e1f3c0832611e89e41871149504fa5",
  188. "acsCode": "001"
  189. }, {
  190. "finChfName": "aa",
  191. "isPairAc": 1,
  192. "code": "0014",
  193. "name": "測試2",
  194. "agyCode": "022",
  195. "id": "14ff2ba1864611e8b71c29a3b3016125",
  196. "acsCode": "001"
  197. }, {
  198. "finChfName": "王娜",
  199. "isPairAc": 1,
  200. "code": "0016",
  201. "name": "wn測試數據",
  202. "agyCode": "022",
  203. "id": "1493d5f1866211e8be7a17c7191e695f",
  204. "acsCode": "001"
  205. }, {
  206. "finChfName": "七月",
  207. "isPairAc": 1,
  208. "code": "0027",
  209. "name": "七月",
  210. "agyCode": "022",
  211. "id": "26b504d1899511e8b1139f00fbd2f491",
  212. "acsCode": "001"
  213. }, {
  214. "finChfName": "啊",
  215. "isPairAc": 1,
  216. "code": "0029",
  217. "name": "啊啊啊啊",
  218. "agyCode": "022",
  219. "id": "e142ed0189ac11e8a943b36e0f97cad8",
  220. "acsCode": "001"
  221. }, {
  222. "finChfName": "京東",
  223. "isPairAc": 0,
  224. "code": "0038",
  225. "name": "ybk數據",
  226. "agyCode": "022",
  227. "id": "8e444c408b0811e8935bb38bf14dc4d5",
  228. "acsCode": "002"
  229. }, {
  230. "finChfName": "測測測",
  231. "isPairAc": 1,
  232. "code": "0040",
  233. "name": "測測測",
  234. "agyCode": "022",
  235. "id": "ff5855318b2511e8895bc71f69695839",
  236. "acsCode": "001"
  237. }, {
  238. "finChfName": "地方",
  239. "isPairAc": 1,
  240. "code": "0043",
  241. "name": "測試333",
  242. "agyCode": "022",
  243. "id": "e57553508b3111e8a2148d98b1a6b4c9",
  244. "acsCode": "001"
  245. }, {
  246. "finChfName": "哦屁",
  247. "isPairAc": 1,
  248. "code": "0045",
  249. "name": "周星馳",
  250. "agyCode": "022",
  251. "id": "cec127618b3611e8a45ecf53378eacfd",
  252. "acsCode": "001"
  253. }, {
  254. "finChfName": "讓人",
  255. "isPairAc": 0,
  256. "code": "0051",
  257. "name": "前期",
  258. "agyCode": "022",
  259. "id": "34e1cee1907411e895aeb3268240930f",
  260. "acsCode": "002"
  261. }, {
  262. "finChfName": "測試oracle",
  263. "isPairAc": 0,
  264. "code": "0054",
  265. "name": "測試oracle",
  266. "agyCode": "022",
  267. "id": "ae1cf381979e11e89b283709976946b2",
  268. "acsCode": "002"
  269. }],
  270. "name": "某某市澤國區科學技術部門",
  271. "pid": "ee22f49ae9c1400599f5d52acbbaa010",
  272. "id": "ee22f49ae9c1400599f5d52acbb88022"
  273. }, {
  274. "code": "302",
  275. "agyTypeCode": "1",
  276. "children": [{
  277. "code": "302001",
  278. "agyTypeCode": "1",
  279. "children": [{
  280. "finChfName": null,
  281. "isPairAc": 1,
  282. "code": "0001",
  283. "name": "地區數據",
  284. "agyCode": "302001",
  285. "id": "b4d0b6f0d2de11e8b3ff6531e1dc713e",
  286. "acsCode": "001"
  287. }],
  288. "name": "湖北省環境保護廳本級",
  289. "pid": "aaf65c00af4011e8ba0e4bb47edc5366",
  290. "id": "b926dde0af4011e8ba0e4bb47edc5366"
  291. }],
  292. "name": "湖北省環境保護廳",
  293. "pid": "",
  294. "id": "aaf65c00af4011e8ba0e4bb47edc5366"
  295. }, {
  296. "code": "555",
  297. "agyTypeCode": "1",
  298. "children": [{
  299. "code": "555001",
  300. "agyTypeCode": "1",
  301. "children": [{
  302. "finChfName": null,
  303. "isPairAc": 0,
  304. "code": "0001",
  305. "name": "中小學校數據",
  306. "agyCode": "555001",
  307. "id": "c9484f80d20c11e897a897a9c63972b2",
  308. "acsCode": "005"
  309. }, {
  310. "finChfName": null,
  311. "isPairAc": 0,
  312. "code": "0002",
  313. "name": "科學事業單位數據",
  314. "agyCode": "555001",
  315. "id": "dc624b70d20c11e897a897a9c63972b2",
  316. "acsCode": "004"
  317. }],
  318. "name": "民族委員會",
  319. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  320. "id": "1051724173375836160"
  321. }, {
  322. "code": "555002",
  323. "agyTypeCode": "1",
  324. "children": [{
  325. "finChfName": null,
  326. "isPairAc": 0,
  327. "code": "0001",
  328. "name": "中小學校數據",
  329. "agyCode": "555002",
  330. "id": "2fec2380d12511e89f0605f50d407345",
  331. "acsCode": "005"
  332. }],
  333. "name": "憲法和法律委員會",
  334. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  335. "id": "1051724173375836161"
  336. }, {
  337. "code": "555003",
  338. "agyTypeCode": "1",
  339. "children": [{
  340. "finChfName": null,
  341. "isPairAc": 0,
  342. "code": "0001",
  343. "name": "中小學校數據",
  344. "agyCode": "555003",
  345. "id": "6cef62c0d2c811e8a5199f3621c38b01",
  346. "acsCode": "005"
  347. }],
  348. "name": "監察和司法委員會",
  349. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  350. "id": "1051724173375836162"
  351. }, {
  352. "code": "555004",
  353. "agyTypeCode": "1",
  354. "children": [{
  355. "finChfName": null,
  356. "isPairAc": 0,
  357. "code": "0001",
  358. "name": "中小學校數據",
  359. "agyCode": "555004",
  360. "id": "75fe8610d12511e89f0605f50d407345",
  361. "acsCode": "005"
  362. }],
  363. "name": "財政經濟委員會",
  364. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  365. "id": "1051724173375836163"
  366. }, {
  367. "code": "555005",
  368. "agyTypeCode": "1",
  369. "children": [{
  370. "finChfName": null,
  371. "isPairAc": 0,
  372. "code": "0001",
  373. "name": "中小學校數據",
  374. "agyCode": "555005",
  375. "id": "7e1d3010d20d11e8a2a5bb48be4c326f",
  376. "acsCode": "005"
  377. }],
  378. "name": "教育科學文化衛生委員會",
  379. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  380. "id": "1051724173375836164"
  381. }, {
  382. "code": "555006",
  383. "agyTypeCode": "1",
  384. "children": [{
  385. "finChfName": null,
  386. "isPairAc": 0,
  387. "code": "0001",
  388. "name": "中小學校數據",
  389. "agyCode": "555006",
  390. "id": "7e1d5720d20d11e8a2a5bb48be4c326f",
  391. "acsCode": "005"
  392. }],
  393. "name": "外事委員會",
  394. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  395. "id": "1051724173375836165"
  396. }, {
  397. "code": "555007",
  398. "agyTypeCode": "1",
  399. "children": [{
  400. "finChfName": null,
  401. "isPairAc": 0,
  402. "code": "0001",
  403. "name": "中小學校數據",
  404. "agyCode": "555007",
  405. "id": "92a69a80d20d11e8a2a5bb48be4c326f",
  406. "acsCode": "005"
  407. }],
  408. "name": "華僑委員會",
  409. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  410. "id": "1051724173375836166"
  411. }, {
  412. "code": "555008",
  413. "agyTypeCode": "1",
  414. "children": [{
  415. "finChfName": null,
  416. "isPairAc": 0,
  417. "code": "0001",
  418. "name": "中小學校數據",
  419. "agyCode": "555008",
  420. "id": "6cef62c1d2c811e8a5199f3621c38b01",
  421. "acsCode": "005"
  422. }],
  423. "name": "環境與資源保護委員會",
  424. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  425. "id": "1051724173375836167"
  426. }, {
  427. "code": "555009",
  428. "agyTypeCode": "1",
  429. "children": [{
  430. "finChfName": null,
  431. "isPairAc": 0,
  432. "code": "0001",
  433. "name": "中小學校數據",
  434. "agyCode": "555009",
  435. "id": "6cef62c2d2c811e8a5199f3621c38b01",
  436. "acsCode": "005"
  437. }],
  438. "name": "農業與農村委員會",
  439. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  440. "id": "1051724173375836168"
  441. }, {
  442. "code": "555010",
  443. "agyTypeCode": "1",
  444. "children": [{
  445. "finChfName": null,
  446. "isPairAc": 0,
  447. "code": "0001",
  448. "name": "中小學校數據",
  449. "agyCode": "555010",
  450. "id": "6cef62c3d2c811e8a5199f3621c38b01",
  451. "acsCode": "005"
  452. }],
  453. "name": "社會建設委員會",
  454. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  455. "id": "1051724173375836169"
  456. }, {
  457. "code": "555011",
  458. "agyTypeCode": "1",
  459. "children": [{
  460. "finChfName": null,
  461. "isPairAc": 0,
  462. "code": "0001",
  463. "name": "中小學校數據",
  464. "agyCode": "555011",
  465. "id": "6cef62c4d2c811e8a5199f3621c38b01",
  466. "acsCode": "005"
  467. }],
  468. "name": "代表資格審查委員會",
  469. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  470. "id": "1051724173375836170"
  471. }, {
  472. "code": "555012",
  473. "agyTypeCode": "1",
  474. "children": [{
  475. "finChfName": null,
  476. "isPairAc": 0,
  477. "code": "0001",
  478. "name": "中小學校數據",
  479. "agyCode": "555012",
  480. "id": "6cef62c5d2c811e8a5199f3621c38b01",
  481. "acsCode": "005"
  482. }],
  483. "name": "預算工作委員會",
  484. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  485. "id": "1051724173375836171"
  486. }, {
  487. "code": "555013",
  488. "agyTypeCode": "1",
  489. "children": [{
  490. "finChfName": null,
  491. "isPairAc": 0,
  492. "code": "0001",
  493. "name": "中小學校數據",
  494. "agyCode": "555013",
  495. "id": "6cef62c6d2c811e8a5199f3621c38b01",
  496. "acsCode": "005"
  497. }],
  498. "name": "香港基本法委員會",
  499. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  500. "id": "1051724173375836172"
  501. }, {
  502. "code": "555014",
  503. "agyTypeCode": "1",
  504. "children": [{
  505. "finChfName": null,
  506. "isPairAc": 0,
  507. "code": "0001",
  508. "name": "中小學校數據",
  509. "agyCode": "555014",
  510. "id": "6cef62c7d2c811e8a5199f3621c38b01",
  511. "acsCode": "005"
  512. }],
  513. "name": "澳門基本法委員會",
  514. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  515. "id": "1051724173375836173"
  516. }, {
  517. "code": "555015",
  518. "agyTypeCode": "1",
  519. "children": [{
  520. "finChfName": null,
  521. "isPairAc": 0,
  522. "code": "0001",
  523. "name": "中小學校數據",
  524. "agyCode": "555015",
  525. "id": "6cef62c8d2c811e8a5199f3621c38b01",
  526. "acsCode": "005"
  527. }],
  528. "name": "秘書部門",
  529. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  530. "id": "1051724173375836174"
  531. }, {
  532. "code": "555016",
  533. "agyTypeCode": "1",
  534. "children": [{
  535. "finChfName": null,
  536. "isPairAc": 0,
  537. "code": "0001",
  538. "name": "中小學校數據",
  539. "agyCode": "555016",
  540. "id": "6cef62c9d2c811e8a5199f3621c38b01",
  541. "acsCode": "005"
  542. }],
  543. "name": "研究室",
  544. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  545. "id": "1051724173375836175"
  546. }, {
  547. "code": "555017",
  548. "agyTypeCode": "1",
  549. "children": [{
  550. "finChfName": null,
  551. "isPairAc": 0,
  552. "code": "0001",
  553. "name": "中小學校數據",
  554. "agyCode": "555017",
  555. "id": "6cef62cad2c811e8a5199f3621c38b01",
  556. "acsCode": "005"
  557. }],
  558. "name": "聯絡部門",
  559. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  560. "id": "1051724173375836176"
  561. }, {
  562. "code": "555018",
  563. "agyTypeCode": "1",
  564. "children": [{
  565. "finChfName": null,
  566. "isPairAc": 0,
  567. "code": "0001",
  568. "name": "中小學校數據",
  569. "agyCode": "555018",
  570. "id": "6cef62cbd2c811e8a5199f3621c38b01",
  571. "acsCode": "005"
  572. }],
  573. "name": "外事部門",
  574. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  575. "id": "1051724173375836177"
  576. }, {
  577. "code": "555019",
  578. "agyTypeCode": "1",
  579. "children": [{
  580. "finChfName": null,
  581. "isPairAc": 0,
  582. "code": "0001",
  583. "name": "中小學校數據",
  584. "agyCode": "555019",
  585. "id": "6cef62ccd2c811e8a5199f3621c38b01",
  586. "acsCode": "005"
  587. }],
  588. "name": "新聞部門",
  589. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  590. "id": "1051724173375836178"
  591. }, {
  592. "code": "555020",
  593. "agyTypeCode": "1",
  594. "children": [{
  595. "finChfName": null,
  596. "isPairAc": 0,
  597. "code": "0001",
  598. "name": "中小學校數據",
  599. "agyCode": "555020",
  600. "id": "6cef62cdd2c811e8a5199f3621c38b01",
  601. "acsCode": "005"
  602. }],
  603. "name": "人事部門",
  604. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  605. "id": "1051724173375836179"
  606. }, {
  607. "code": "555021",
  608. "agyTypeCode": "1",
  609. "children": [{
  610. "finChfName": null,
  611. "isPairAc": 0,
  612. "code": "0001",
  613. "name": "中小學校數據",
  614. "agyCode": "555021",
  615. "id": "6cef62ced2c811e8a5199f3621c38b01",
  616. "acsCode": "005"
  617. }],
  618. "name": "機關事務管理部門",
  619. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  620. "id": "1051724173375836180"
  621. }, {
  622. "code": "555022",
  623. "agyTypeCode": "1",
  624. "children": [{
  625. "finChfName": null,
  626. "isPairAc": 0,
  627. "code": "0001",
  628. "name": "中小學校數據",
  629. "agyCode": "555022",
  630. "id": "6cef62cfd2c811e8a5199f3621c38b01",
  631. "acsCode": "005"
  632. }],
  633. "name": "機關黨委",
  634. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  635. "id": "1051724173375836181"
  636. }, {
  637. "code": "555023",
  638. "agyTypeCode": "1",
  639. "children": [{
  640. "finChfName": null,
  641. "isPairAc": 0,
  642. "code": "0001",
  643. "name": "中小學校數據",
  644. "agyCode": "555023",
  645. "id": "6cef62d0d2c811e8a5199f3621c38b01",
  646. "acsCode": "005"
  647. }],
  648. "name": "機關紀委",
  649. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  650. "id": "1051724173375836182"
  651. }, {
  652. "code": "555024",
  653. "agyTypeCode": "1",
  654. "children": [{
  655. "finChfName": null,
  656. "isPairAc": 0,
  657. "code": "0001",
  658. "name": "中小學校數據",
  659. "agyCode": "555024",
  660. "id": "6cef62d1d2c811e8a5199f3621c38b01",
  661. "acsCode": "005"
  662. }],
  663. "name": "機關工會",
  664. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  665. "id": "1051724173375836183"
  666. }, {
  667. "code": "555025",
  668. "agyTypeCode": "1",
  669. "children": [{
  670. "finChfName": null,
  671. "isPairAc": 0,
  672. "code": "0001",
  673. "name": "中小學校數據",
  674. "agyCode": "555025",
  675. "id": "6cef62d2d2c811e8a5199f3621c38b01",
  676. "acsCode": "005"
  677. }],
  678. "name": "信訪部門",
  679. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  680. "id": "1051724173375836184"
  681. }, {
  682. "code": "555026",
  683. "agyTypeCode": "1",
  684. "children": [{
  685. "finChfName": null,
  686. "isPairAc": 0,
  687. "code": "0001",
  688. "name": "中小學校數據",
  689. "agyCode": "555026",
  690. "id": "6cef62d3d2c811e8a5199f3621c38b01",
  691. "acsCode": "005"
  692. }],
  693. "name": "中國位置制度理論研究會",
  694. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  695. "id": "1051724173375836185"
  696. }, {
  697. "code": "555027",
  698. "agyTypeCode": "1",
  699. "children": [{
  700. "finChfName": null,
  701. "isPairAc": 0,
  702. "code": "0001",
  703. "name": "中小學校數據",
  704. "agyCode": "555027",
  705. "id": "6cef89d0d2c811e8a5199f3621c38b01",
  706. "acsCode": "005"
  707. }],
  708. "name": "中央紀委駐某地區位置機關紀檢組",
  709. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  710. "id": "1051724173375836186"
  711. }, {
  712. "code": "555028",
  713. "agyTypeCode": "1",
  714. "children": [{
  715. "finChfName": null,
  716. "isPairAc": 0,
  717. "code": "0001",
  718. "name": "中小學校數據",
  719. "agyCode": "555028",
  720. "id": "6cef89d1d2c811e8a5199f3621c38b01",
  721. "acsCode": "005"
  722. }],
  723. "name": "常委會會場",
  724. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  725. "id": "1051724173375836187"
  726. }, {
  727. "code": "555029",
  728. "agyTypeCode": "1",
  729. "children": [{
  730. "finChfName": null,
  731. "isPairAc": 0,
  732. "code": "0001",
  733. "name": "中小學校數據",
  734. "agyCode": "555029",
  735. "id": "6cef89d2d2c811e8a5199f3621c38b01",
  736. "acsCode": "005"
  737. }],
  738. "name": "信息中心(本級)",
  739. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  740. "id": "1051724173375836188"
  741. }, {
  742. "code": "555030",
  743. "agyTypeCode": "1",
  744. "children": [{
  745. "finChfName": null,
  746. "isPairAc": 0,
  747. "code": "0001",
  748. "name": "中小學校數據",
  749. "agyCode": "555030",
  750. "id": "6cef89d3d2c811e8a5199f3621c38b01",
  751. "acsCode": "005"
  752. }],
  753. "name": "法制工作委員會",
  754. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  755. "id": "1051724173375836189"
  756. }, {
  757. "code": "555031",
  758. "agyTypeCode": "1",
  759. "children": [{
  760. "finChfName": null,
  761. "isPairAc": 0,
  762. "code": "0001",
  763. "name": "中小學校數據",
  764. "agyCode": "555031",
  765. "id": "6cef89d4d2c811e8a5199f3621c38b01",
  766. "acsCode": "005"
  767. }],
  768. "name": "離退休干部部門",
  769. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  770. "id": "1051724173375836190"
  771. }, {
  772. "code": "555032",
  773. "agyTypeCode": "1",
  774. "children": [{
  775. "finChfName": null,
  776. "isPairAc": 0,
  777. "code": "0001",
  778. "name": "中小學校數據",
  779. "agyCode": "555032",
  780. "id": "6cef89d5d2c811e8a5199f3621c38b01",
  781. "acsCode": "005"
  782. }],
  783. "name": "采購中心",
  784. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  785. "id": "1051724173375836191"
  786. }, {
  787. "code": "555033",
  788. "agyTypeCode": "1",
  789. "children": [{
  790. "finChfName": null,
  791. "isPairAc": 0,
  792. "code": "0001",
  793. "name": "中小學校數據",
  794. "agyCode": "555033",
  795. "id": "6cef89d6d2c811e8a5199f3621c38b01",
  796. "acsCode": "005"
  797. }],
  798. "name": "大會堂管理部門",
  799. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  800. "id": "1051724173375836192"
  801. }, {
  802. "code": "555034",
  803. "agyTypeCode": "1",
  804. "children": [{
  805. "finChfName": null,
  806. "isPairAc": 0,
  807. "code": "0001",
  808. "name": "中小學校數據",
  809. "agyCode": "555034",
  810. "id": "6cef89d7d2c811e8a5199f3621c38b01",
  811. "acsCode": "005"
  812. }],
  813. "name": "機關服務中心",
  814. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  815. "id": "1051724173375836193"
  816. }, {
  817. "code": "555035",
  818. "agyTypeCode": "1",
  819. "children": [{
  820. "finChfName": null,
  821. "isPairAc": 0,
  822. "code": "0001",
  823. "name": "中小學校數據",
  824. "agyCode": "555035",
  825. "id": "6cef89d8d2c811e8a5199f3621c38b01",
  826. "acsCode": "005"
  827. }],
  828. "name": "信息中心",
  829. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  830. "id": "1051724173375836194"
  831. }, {
  832. "code": "555036",
  833. "agyTypeCode": "1",
  834. "children": [{
  835. "finChfName": null,
  836. "isPairAc": 0,
  837. "code": "0001",
  838. "name": "中小學校數據",
  839. "agyCode": "555036",
  840. "id": "6cef89d9d2c811e8a5199f3621c38b01",
  841. "acsCode": "005"
  842. }],
  843. "name": "培訓中心",
  844. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  845. "id": "1051724173375836195"
  846. }, {
  847. "code": "555037",
  848. "agyTypeCode": "1",
  849. "children": [{
  850. "finChfName": null,
  851. "isPairAc": 0,
  852. "code": "0001",
  853. "name": "中小學校數據",
  854. "agyCode": "555037",
  855. "id": "6cef89dad2c811e8a5199f3621c38b01",
  856. "acsCode": "005"
  857. }],
  858. "name": "圖書館",
  859. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  860. "id": "1051724173375836196"
  861. }, {
  862. "code": "555038",
  863. "agyTypeCode": "1",
  864. "children": [{
  865. "finChfName": null,
  866. "isPairAc": 0,
  867. "code": "0001",
  868. "name": "中小學校數據",
  869. "agyCode": "555038",
  870. "id": "6cef89dbd2c811e8a5199f3621c38b01",
  871. "acsCode": "005"
  872. }],
  873. "name": "會議中心",
  874. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  875. "id": "1051724173375836197"
  876. }, {
  877. "code": "555039",
  878. "agyTypeCode": "1",
  879. "children": [{
  880. "finChfName": null,
  881. "isPairAc": 0,
  882. "code": "0001",
  883. "name": "中小學校數據",
  884. "agyCode": "555039",
  885. "id": "6cef89dcd2c811e8a5199f3621c38b01",
  886. "acsCode": "005"
  887. }],
  888. "name": "雜志社",
  889. "pid": "617289d0d04411e8bd8033bd2a0fffdf",
  890. "id": "1051724173375836198"
  891. }],
  892. "name": "某地區位置",
  893. "pid": "",
  894. "id": "617289d0d04411e8bd8033bd2a0fffdf"
  895. }, {
  896. "code": "777",
  897. "agyTypeCode": "1",
  898. "children": [{
  899. "code": "777001",
  900. "agyTypeCode": "1",
  901. "children": [{
  902. "finChfName": null,
  903. "isPairAc": 0,
  904. "code": "0001",
  905. "name": "中小學校數據",
  906. "agyCode": "777001",
  907. "id": "efe6c290d2c811e8a5199f3621c38b01",
  908. "acsCode": "005"
  909. }],
  910. "name": "秘書部門",
  911. "pid": "62a366d0ced211e8b747731b606acef5",
  912. "id": "73ca4550ced211e8b747731b606acef5"
  913. }, {
  914. "code": "777002",
  915. "agyTypeCode": "1",
  916. "children": [{
  917. "finChfName": null,
  918. "isPairAc": 1,
  919. "code": "0002",
  920. "name": "地區數據",
  921. "agyCode": "777002",
  922. "id": "a64a3100d4fb11e8b679555649b719c9",
  923. "acsCode": "001"
  924. }],
  925. "name": "人事部門",
  926. "pid": "62a366d0ced211e8b747731b606acef5",
  927. "id": "825d5990ced211e8b747731b606acef5"
  928. }],
  929. "name": "某地區位置測試數據",
  930. "pid": "",
  931. "id": "62a366d0ced211e8b747731b606acef5"
  932. }]
  933. let dobj =
  934. {"agyCode":"0101",
  935. "agyName":"國家體育總局經濟司",
  936. "acbCode":"0008",
  937. "acbName":"二胎",
  938. "acsCode":"001"}

</>復制代碼

  1. function find(arr, fn, result) {
  2. arr.forEach(item => {
  3. if (item.children) {
  4. find(item.children, fn, result)
  5. } else {
  6. if (fn(item)) {
  7. result.push(item)
  8. }
  9. }
  10. })
  11. }
  12. var result = []
  13. find(carr, item => {
  14. return item.name == dobj.acbName && item.code == dobj.acbCode && item.agyCode == dobj.agyCode
  15. }, result)
  16. console.log(result);

</>復制代碼

  1. 會從整個數組中遍歷滿足條件dobj的東西

最后的結果會是:

文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。

轉載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/114083.html

相關文章

  • :指定JSON數據外層數組根據指定條件拿到匹配結果

    摘要:某某市澤國區推薦二胎查收茶水草兩個哈哈啊啊測試平行記賬啊啊啊測試不是平行記賬啊啊啊按時吃打算大薩達國家體育總部門經濟司國家體育總部門測試區劃他他他行政數據雷霆崖烈焰是剖切新會計制度期末業務張三事業數據啊啊測試某某市澤國區財政部門測試行政測試 let carr = [{ code: 000, agyTypeCode: 1, name: 某某市澤國區, pi...

    omgdog 評論0 收藏0
  • :指定JSON數據外層數組根據指定條件拿到匹配結果

    摘要:某某市澤國區推薦二胎查收茶水草兩個哈哈啊啊測試平行記賬啊啊啊測試不是平行記賬啊啊啊按時吃打算大薩達國家體育總部門經濟司國家體育總部門測試區劃他他他行政數據雷霆崖烈焰是剖切新會計制度期末業務張三事業數據啊啊測試某某市澤國區財政部門測試行政測試 let carr = [{ code: 000, agyTypeCode: 1, name: 某某市澤國區, pi...

    wangbjun 評論0 收藏0
  • 廣州三本找Java實習經歷

    摘要:廣州三本大三在讀,在廣州找實習。這篇文章其實主要是記錄一下自己的面試經歷,希望大家看完之后能有所了解進入中小公司究竟需要什么水平。時間復雜度盡量低一些使用快排的,將給出的隨機數做基準值返回的坐標就是了。 前言 只有光頭才能變強 這陣子跑去面試Java實習生啦~~~我來簡單介紹一下背景吧。 廣州三本大三在讀,在廣州找實習。大學開始接觸編程,一個非常平庸的人。 在學習編程時,跟我類似的人應...

    enali 評論0 收藏0
  • 貼一貼我后端開發面試題

    摘要:線程有幾種狀態生命周期是怎樣的線程有五種狀態創建就緒運行阻塞死亡。當線程獲得到等待的資源資源或者引起阻塞的條件得到滿足時調用或,會從阻塞狀態進入就緒狀態。使用,允許最多個線程同時訪問資源。 轉載請注明出處: 貼一貼我的后端開發面試題。 本文是面試回寢室后憑記憶羅列出來的問題,大概90%的問題都在這里面了,有幾個問題的實在是想不起來了= =,有些問題自我感覺回答的不好,所以我是查了資料...

    Batkid 評論0 收藏0

發表評論

0條評論

最新活動
閱讀需要支付1元查看
<