{"id":10021068,"date":"2025-11-06T21:15:07","date_gmt":"2025-11-06T13:15:07","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021068"},"modified":"2025-11-06T21:15:07","modified_gmt":"2025-11-06T13:15:07","slug":"%e5%be%97%e7%89%a9%e7%ae%a1%e7%90%86%e7%b1%bb%e7%9b%ae%e9%85%8d%e7%bd%ae%e7%ba%bf%e4%b8%8a%e5%8c%96%ef%bc%9a%e4%bb%8e%e4%b8%9a%e5%8a%a1%e7%97%9b%e7%82%b9%e5%88%b0%e6%8a%80%e6%9c%af%e5%ae%9e%e7%8e%b0","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021068","title":{"rendered":"\u5f97\u7269\u7ba1\u7406\u7c7b\u76ee\u914d\u7f6e\u7ebf\u4e0a\u5316\uff1a\u4ece\u4e1a\u52a1\u75db\u70b9\u5230\u6280\u672f\u5b9e\u73b0"},"content":{"rendered":"<h2>\u4e00\u3001\u5f15\u8a00<\/h2>\n<p>\u5728\u7535\u5546\u4ea4\u6613\u9886\u57df\uff0c\u7ba1\u7406\u7c7b\u76ee\u4f5c\u4e3a\u4e1a\u52a1\u8d23\u6743\u5212\u5206\u3001\u7edf\u7b79\u3001\u7ba1\u7406\u6838\u5fc3\u8f7d\u4f53\uff0c\u968f\u7740\u4e1a\u52a1\u590d\u6742\u6027\u7684\u63d0\u9ad8\uff0c\u5176\u89c4\u5219\u8c03\u6574\u9891\u7387\u4ece\u6700\u521d\u7684 1 \u6b21 \/ \u5b63\u5ea6\u5230\u591a\u6b21 \/ \u5b63\u5ea6\uff0c\u4e09\u7ea7\u7c7b\u76ee\u7684\u89c4\u5219\u590d\u6742\u5ea6\u4e5f\u5448\u6307\u6570\u7ea7\u4e0a\u5347\u3002\u4f20\u7edf\u4f9d\u8d56\u6570\u4ed3\u5e95\u5c42\u66f4\u65b0\u7684\u65b9\u5f0f\u66b4\u9732\u51fa\u4e09\u5927\u75db\u70b9\uff1a<\/p>\n<ul>\n<li>\u884c\u4e1a\u65e0\u6cd5\u81ea\u4e3b\u3001\u5feb\u901f\u8c03\u7ba1\u7406\u7c7b\u76ee\uff1b<\/li>\n<li>\u4e1a\u52a1\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u8c03\u6574\uff0c\u4e0d\u652f\u6301\u6821\u9a8c\u7c7b\u76ee\u8986\u76d6\u8303\u56f4\u662f\u5426\u6709\u91cd\u590d\/\u9057\u6f0f\uff0c\u5ef6\u957f\u4ea4\u4ed8\u5468\u671f\uff1b<\/li>\n<li>\u89c4\u5219\u53d8\u66f4\u6210\u529f\u540e\u3001\u4e0b\u6e38\u7cfb\u7edf\u54cd\u5e94\u6ede\u540e\uff0c\u65e0\u6cd5\u53ca\u65f6\u5e94\u7528\u6700\u65b0\u7c7b\u76ee\u89c4\u5219\u3002<\/li>\n<\/ul>\n<p>\u672c\u6587\u5c06\u4ece\u6280\u672f\u89c6\u89d2\u89e3\u6790 \u201c\u7ba1\u7406\u7c7b\u76ee\u914d\u7f6e\u7ebf\u4e0a\u5316\u201d \u9879\u76ee\u5982\u4f55\u901a\u8fc7\u5168\u94fe\u8def\u6280\u672f\u9a71\u52a8\uff0c\u5c06\u89c4\u5219\u8fed\u4ee3\u5468\u671f\u7f29\u77ed\u81f3 1-2 \u5929\u3002<\/p>\n<h2>\u4e8c\u3001\u4e1a\u52a1\u75db\u70b9\u4e0e\u6280\u672f\u6311\u6218\uff1a\u4e3a\u4ec0\u4e48\u9700\u8981\u7ebf\u4e0a\u5316\uff1f<\/h2>\n<h2>2.1 \u6548\u7387\u74f6\u9888\uff1a\u624b\u5de5\u6d41\u7a0b\u4e0e<\/h2>\n<p><strong>\u9ad8\u9891\u8fed\u4ee3\u7684\u77db\u76fe<\/strong><\/p>\n<p><strong>\u95ee\u9898\u573a\u666f<\/strong>\uff1a\u4e1a\u52a1\u65b9\u9700\u7ebf\u4e0b\u901a\u8fc7\u6570\u4ed3\u63d0\u62a5\u89c4\u5219\u53d8\u66f4\uff0c\u7ecf\u6570\u4ed3\u5f00\u53d1\u3001\u6d4b\u8bd5\u3001BI\u9700\u8981\u82b1\u8d39\u5927\u91cf\u7cbe\u529b\u6821\u9a8c\u786e\u8ba4\uff0c\u4e00\u6b21\u7c7b\u76ee\u53d8\u66f4\u9700 3-4 \u5468\u5de6\u53f3\u65f6\u95f4\u624d\u80fd\u4e0a\u7ebf\u751f\u6548\uff0c\u4e0a\u7ebf\u65f6\u95f4\u65e0\u6cd5\u4fdd\u8bc1\u3002<\/p>\n<p><strong>\u6280\u672f\u74f6\u9888<\/strong>\uff1a\u6570\u4ed3\u79bb\u7ebf\u540c\u6b65\u5468\u671f\u957f\uff08T+1\uff09\uff0c\u89c4\u5219\u6821\u9a8c\u4f9d\u8d56\u4eba\u5de5\u68b3\u7406\uff0c\u65e0\u6cd5\u5e94\u5bf9 \u201c\u5546\u54c1\u7c7b\u76ee\u91cf\u7ea7\u6fc0\u589e\u201d\u3002<\/p>\n<h2>2.2 \u8d28\u91cf\u98ce\u9669\uff1a\u89c4\u5219\u590d\u6742\u5ea6\u4e0e<\/h2>\n<p><strong>\u6821\u9a8c\u80fd\u529b\u7684\u5931\u8861<\/strong><\/p>\n<p><strong>\u5178\u578b\u95ee\u9898<\/strong>\uff1a\u5f53\u524d\u7684\u7ba1\u7406\u7c7b\u76ee\u6620\u5c04\u89c4\u5219\uff0c\u4f9d\u8d56\u4e1a\u52a1\u6536\u96c6\u63d0\u62a5\uff0c\u4f46\u4ece\u5b9e\u9645\u64cd\u4f5c\u770b\u7ba1\u7406\u4e09\u7ea7\u7c7b\u76ee\u6620\u5c04\u89c4\u5219\u63d0\u62a5\u8d28\u91cf\u8f83\u5dee(\u4e3b\u8981\u539f\u56e0\u4e3a\uff1a\u4e1a\u52a1\u65e0\u6cd5\u53ca\u65f6\u6821\u9a8c\u63d0\u62a5\u89c4\u5219\u662f\u5426\u51c6\u786e\uff0c\u662f\u5426\u7a77\u4e3e\u5b8c\u5584\uff0c\u662f\u5426\u5b8c\u5168\u65e0\u4ea4\u53c9)\uff0c\u5b58\u5728\u5927\u91cf\u91cd\u590d \/ \u9057\u6f0f\u98ce\u9669\u3002<\/p>\n<h2>2.3 \u7cfb\u7edf\u8026\u5408\uff1a\u5e95\u5c42\u53d8\u66f4\u5bf9<\/h2>\n<p><strong>\u4e0b\u6e38\u5e94\u7528\u7684\u591a\u7c73\u8bfa\u6548\u5e94<\/strong><\/p>\n<p><strong>\u8fde\u9501\u5f71\u54cd<\/strong>\uff1a\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u53d8\u66f4\u4f1a\u9700\u540c\u6b65\u66f4\u65b0\u4ea4\u6613\u540e\u53f0\u3001\u667a\u80fd\u8fd0\u8425\u7cfb\u7edf\u3001\u5546\u8fd0\u5173\u7cfb\u5de5\u4f5c\u53f0\u7b49\u591a\u4e0b\u6e38\u7cfb\u7edf\uff0c\u5982\u65e0\u6cd5\u53ca\u65f6\u540c\u6b65\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u4e0b\u6e38\u5e94\u7528\u5982\u5546\u8fd0\u5173\u7cfb\u5de5\u4f5c\u53f0\u7684\u5458\u5de5\u5206\u5de5\u8303\u56f4\u7684\u51c6\u786e\u6027\uff0c\u5f71\u54cd\u5546\u5bb6\u627e\u4eba\u3001\u8d44\u8d28\u5ba1\u6279\u7b49\u573a\u666f\u5e94\u7528\u3002<\/p>\n<h2>\u4e09\u3001\u6280\u672f\u65b9\u6848\uff1a\u4ece\u67b6\u6784\u8bbe\u8ba1\u5230\u6838\u5fc3\u6a21\u5757\u62c6\u89e3<\/h2>\n<h2>3.1 \u5206\u5c42\u67b6\u6784\uff1a\u89e3\u8026\u4e1a\u52a1\u4e0e\u6570\u636e\u94fe\u8def<\/h2>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372936\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\"><\/p>\n<h2>3.2 \u6838\u5fc3\u6a21\u5757\u6280\u672f\u5b9e\u73b0<\/h2>\n<p><strong>\u89c4\u5219\u751f\u547d\u5468\u671f\u7ba1\u7406\uff1a \u89c4\u5219\u64cd\u4f5c\u6d41\u7a0b<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372937\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372938\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372939\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372940\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><\/p>\n<p>\u63d0\u4ea4\u7ba1\u7406\u7c7b\u76ee\u552f\u4e00\u6027\u6821\u9a8c\u89c4\u5219<\/p>\n<p><strong>\u65b0\u589e<\/strong>\uff1aid\u4e3a\u7a7a\uff0c\u5219\u4e3a\u65b0\u589e<\/p>\n<p><strong>\u5220\u9664<\/strong>\uff1a\u5f53\u524ddb\u6570\u636e\u4e0d\u5728\u63d0\u4ea4\u4fdd\u5b58\u5217\u8868\u4e2d<\/p>\n<p><strong>\u66f4\u65b0<\/strong>\uff1a\u540d\u79f0\u6216\u662f\u5426\u515c\u5e95\u7c7b\u76ee\u6216\u89c4\u5219\u6539\u53d8\u5219\u53d1\u751f\u66f4\u65b0\u3010\u5176\u4e2d\u5982\u679c\u53ea\u6709\u540d\u79f0\u6539\u53d8\u5219\u53ea\u89e6\u53d1\u5ba1\u6279\uff0c\u4e0d\u9700\u7b49\u5f85\u6570\u636e\u6821\u9a8c\uff0c\u4e1a\u52a1\u89c4\u5219\u6821\u9a8c\u903b\u8f91\u4e3a\u5c06\u6240\u6709\u89c4\u5219\u5305\u542bid\uff0c\u6309\u7167\u987a\u5e8f\u6392\u5e8f\u62fc\u63a5\u4e4b\u540e\u7ed3\u679c\u662f\u5426\u76f8\u7b49\u3011<\/p>\n<p><strong>\u591a\u7ea7\u7c7b\u76ee\u67e5\u8be2<\/strong><\/p>\n<p><img decoding=\"async\"   referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000047372941\" alt=\"\u56fe\u7247\" title=\"\u56fe\u7247\" loading=\"lazy\"><\/p>\n<p><strong>\u6784\u5efa\u7ba1\u7406\u7c7b\u76ee\u6811<\/strong><\/p>\n<pre><code>\/**\n * \u6784\u5efa\u7ba1\u7406\u7c7b\u76ee\u6811\n *\/\npublic List&lt;ManagementCategoryDTO&gt; buildTree(List&lt;ManagementCategoryEntity&gt; managementCategoryEntities) {\n    Map&lt;Long, ManagementCategoryDTO&gt; managementCategoryMap = new HashMap&lt;&gt;();\n    for (ManagementCategoryEntity category : managementCategoryEntities) {\n        ManagementCategoryDTO managementCategoryDTO = ManagementCategoryMapping.convertEntity2DTO(category);\n        managementCategoryMap.put(category.getId(), managementCategoryDTO);\n    }\n    \n    \/\/ \u627e\u5230\u6839\u8282\u70b9\n    List&lt;ManagementCategoryDTO&gt; rootNodes = new ArrayList&lt;&gt;();\n    for (ManagementCategoryDTO categoryNameDTO : managementCategoryMap.values()) {\n        \/\/\u7ba1\u7406\u4e00\u7ea7\u7c7b\u76ee parentId\u662f0\n        if (Objects.equals(categoryNameDTO.getLevel(), ManagementCategoryLevelEnum.FIRST.getId()) &amp;&amp; Objects.equals(categoryNameDTO.getParentId(), 0L)) {\n            rootNodes.add(categoryNameDTO);\n        }\n    }\n    \/\/ \u6784\u5efa\u6811\u7ed3\u6784\n    for (ManagementCategoryDTO node : managementCategoryMap.values()) {\n        if (node.getLevel() &gt; ManagementCategoryLevelEnum.FIRST.getId()) {\n            ManagementCategoryDTO parentNode = managementCategoryMap.get(node.getParentId());\n            if (parentNode != null) {\n                parentNode.getItems().add(node);\n            }\n        }\n    }\n    return rootNodes;\n}<\/code><\/pre>\n<p><strong>\u586b\u5145\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219<\/strong><\/p>\n<pre><code>\n\n\/**\n * \u586b\u5145\u89c4\u5219\u4fe1\u606f\n *\/\nprivate void populateRuleData\n(List&lt;ManagementCategoryDTO&gt; managementCategoryDTOS, List&lt;ManagementCategoryRuleEntity&gt; managementCategoryRuleEntities) {\n    if (CollectionUtils.isEmpty(managementCategoryDTOS) || CollectionUtils.isEmpty(managementCategoryRuleEntities)) {\n        return;\n    }\n    List&lt;ManagementCategoryRuleDTO&gt; managementCategoryRuleDTOS =managementCategoryMapping.convertRuleEntities2DTOS(managementCategoryRuleEntities);\n    \/\/ \u5c06\u89c4\u5219\u96c6\u5408\u6309 categoryId \u5206\u7ec4\n    Map&lt;Long, List&lt;ManagementCategoryRuleDTO&gt;&gt; rulesByCategoryIdMap = managementCategoryRuleDTOS.stream()\n            .collect(Collectors.groupingBy(ManagementCategoryRuleDTO::getCategoryId));\n    \/\/ \u9012\u5f52\u586b\u5145\u89c4\u5219\u5230\u6811\u7ed3\u6784\n    fillRulesRecursively(managementCategoryDTOS, rulesByCategoryIdMap);\n\n\n}\n\n\n\/**\n * \u9012\u5f52\u586b\u5145\u89c4\u5219\u5230\u6811\u7ed3\u6784\n *\/\nprivate static void fillRulesRecursively\n(List&lt;ManagementCategoryDTO&gt; managementCategoryDTOS, Map&lt;Long, List&lt;ManagementCategoryRuleDTO&gt;&gt; rulesByCategoryIdMap) {\n    if (CollectionUtils.isEmpty(managementCategoryDTOS) || MapUtils.isEmpty(rulesByCategoryIdMap)) {\n        return;\n    }\n    for (ManagementCategoryDTO node : managementCategoryDTOS) {\n        \/\/ \u83b7\u53d6\u5f53\u524d\u8282\u70b9\u5bf9\u5e94\u7684\u89c4\u5219\u5217\u8868\n        List&lt;ManagementCategoryRuleDTO&gt; rules = rulesByCategoryIdMap.getOrDefault(node.getId(), new ArrayList&lt;&gt;());\n        node.setRules(rules);\n        \/\/ \u9012\u5f52\u5904\u7406\u5b50\u8282\u70b9\n        fillRulesRecursively(node.getItems(), rulesByCategoryIdMap);\n    }\n}<\/code><\/pre>\n<p><strong>\u72b6\u6001\u673a\u9a71\u52a8\uff1a\u7ba1\u7406\u7c7b\u76ee\u751f\u547d\u5468\u671f\u7ba1\u7406<\/strong><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"506\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1i\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u8d85\u65f6\u673a\u5236 \uff1a\u57fa\u4e8e\u65f6\u95f4\u9608\u503c\u7684\u6d41\u7a0b\u963b\u585e\u4fdd\u62a4<\/strong><\/p>\n<p>\u5176\u4e2d\uff0c\u4e3a\u9632\u6b62\u957f\u65f6\u95f4\u8fd0\u8425\u5904\u4e8e\u5f85\u786e\u8ba4\u89c4\u5219\u72b6\u6001\uff0c\u9020\u6210\u5176\u4ed6\u89c4\u5219\u963b\u585e\u89c4\u5219\u4fee\u6539\uff0c\u5b9a\u65f6\u5224\u65ad\u5f85\u786e\u8ba4\u89c4\u5219\u72b6\u6001\u6301\u7eed\u65f6\u95f4\uff0c\u5f53\u65f6\u95f4\u8d85\u8fc7xxx\u65f6\u95f4\u4e4b\u540e\uff0c\u5219\u5c06\u5f85\u786e\u8ba4\u72b6\u6001\u6539\u4e3a\u957f\u65f6\u95f4\u672a\u64cd\u4f5c\uff0c\u653e\u5f03\u53d8\u66f4\u72b6\u6001\uff0c\u5e76\u98de\u4e66\u901a\u77e5\u89c4\u5219\u4fee\u6539\u4eba\u3002<\/p>\n<p><img decoding=\"async\" width=\"695\" height=\"679\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1j\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u7ba1\u7406\u7c7b\u76ee\u72b6\u6001\u53d8\u5316\u7ea7\u8054\u4f20\u64ad\u7b56\u7565<\/strong><\/p>\n<p>\u7c7b\u76ee\u751f\u6548\u548c\u5931\u6548\u72b6\u6001\u4e3a\u7ea7\u8054\u64cd\u4f5c\u3002\u89c4\u5219\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>\u7ba1\u7406\u4e8c\u7ea7\u7c7b\u76ee\u6709\u8349\u7a3f\u72b6\u6001\u65f6\uff0c\u4e0d\u5141\u8bb8\u4e0b\u6302\u4e09\u7ea7\u7c7b\u76ee\u7684\u7f16\u8f91\uff1b<\/li>\n<li>\u7ba1\u7406\u4e09\u7ea7\u7c7b\u76ee\u6709\u8349\u7a3f\u72b6\u6001\u65f6\uff0c\u4e0d\u5141\u8bb8\u5bf9\u5e94\u4e8c\u7ea7\u7c7b\u76ee\u7684\u89c4\u5219\u7f16\u8f91\uff1b<\/li>\n<li>\u7c7b\u76ee\u751f\u6548\u5931\u6548\u72b6\u6001\u4e3a\u7ea7\u8054\u64cd\u4f5c\uff0c\u4e0a\u5c42\u4fee\u6539\u4e0b\u5c42\u7ea7\u8054\u4fee\u6539\u72b6\u6001\uff0c\u5982\u679c\u4e0b\u5c42\u7ba1\u7406\u7c7b\u76ee\u5b58\u5728\u8349\u7a3f\u72b6\u6001\uff0c\u5219\u81ea\u52a8\u66f4\u6539\u4e3a\u653e\u5f03\u66f4\u6539\u72b6\u6001\u3002<\/li>\n<\/ul>\n<p><strong>\u89c4\u5219\u53d8\u66f4\u6821\u9a8c\u903b\u8f91<\/strong><\/p>\n<p>\u5f53\u4e00\u6b21\u63d0\u4ea4\uff0c\u53ef\u80fd\u51fa\u73b0\u7684\u60c5\u51b5\u5982\u4e0b\u3002\u4e00\u6b21\u63d0\u4ea4\u53ef\u80fd\u4f1a\u4ea7\u751f\u591a\u4e2a\u8349\u7a3f\uff0c\u5bf9\u5e94\u591a\u4e2a\u5ba1\u6279\u6d41\u7a0b\u3002<\/p>\n<p>\u65b0\u589e\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\uff1a<\/p>\n<ul>\n<li>\u4e00\u7ea7\u7ba1\u7406\u7c7b\u76ee\u53ef\u4ee5\u76f4\u63a5\u65b0\u589e\uff08\u70b9\u51fb\u65b0\u589e\u4e00\u7ea7\u7ba1\u7406\u7c7b\u76ee\uff09<\/li>\n<li>\u4e8c\u7ea7\u7ba1\u7406\u7c7b\u76ee\u548c\u4e09\u7ea7\u7ba1\u7406\u7c7b\u76ee\u4e0d\u53ef\u540c\u65f6\u65b0\u589e<\/li>\n<li>\u4e09\u7ea7\u7ba1\u7406\u7c7b\u76ee\u9700\u8981\u5728\u5df2\u6709\u4e8c\u7ea7\u7c7b\u76ee\u57fa\u7840\u4e0a\u65b0\u589e<\/li>\n<\/ul>\n<p>\u53ea\u6709\u540d\u79f0\u4fee\u6539\u89e6\u53d1\u76f4\u63a5\u5ba1\u6279\uff0c\u6709\u89c4\u5219\u4fee\u6539\u9700\u8981\u7b49\u5f85\u6570\u4ed3\u8ba1\u7b97\u7ed3\u679c\u4e4b\u540e\uff0c\u8fd0\u8425\u63d0\u4ea4\u53d1\u8d77\u5ba1\u6279\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"477\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1r\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u4ea4\u4e92\u901a\u77e5\u4e2d\u5fc3\uff1a\u98de\u4e66\u5361\u7247\u63a8\u9001<\/strong><\/p>\n<ul>\n<li>\u53d8\u66f4\u89c4\u5219\u6570\u636e\u8ba1\u7b97\u7ed3\u679c\u4f9d\u8d56\u6570\u4ed3kafka\u8ba1\u7b97\u7ed3\u679c\u56de\u8c03\u3002<\/li>\n<li>\u57fa\u4e8e\u98de\u4e66\u5361\u7247\u63a8\u9001\u6570\u4ed3\u8ba1\u7b97\u7ed3\u679c\uff0c\u56de\u8c03\u63d0\u4ea4\u5ba1\u6279\u548c\u653e\u5f03\u53d8\u66f4\u4e8b\u4ef6\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"642\" height=\"797\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1t\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u98de\u4e66\u5361\u7247\uff1a<\/strong><\/p>\n<p>\u5361\u7247\u7ed3\u679c<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"607\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1u\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u5361\u7247\u64cd\u4f5c\u7ed3\u679c<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"310\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1w\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u5ba1\u6279\u6d41\u7a0b\uff1a\u591a\u7ef4\u5ea6\u6743\u9650\u63a7\u5236\u4e0e\u98de\u4e66\u96c6\u6210<\/strong><\/p>\n<p>\u63d0\u4ea4\u5ba1\u6279\u7684\u56db\u79cd\u60c5\u51b5\uff1a<\/p>\n<ul>\n<li>\u540d\u79f0\u4fee\u6539<\/li>\n<li>\u4e00\u7ea7\u7c7b\u76ee\u65b0\u589e<\/li>\n<li>\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u4fee\u6539<\/li>\n<li>\u751f\u6548\u5931\u6548\u53d8\u66f4<\/li>\n<\/ul>\n<p>\u5ba1\u6279\u901a\u8fc7\uff0c\u5c06\u8349\u7a3f\u5185\u5bb9\u66f4\u65b0\u5230\u7ba1\u7406\u7c7b\u76ee\u8868\u4e2d\uff0c\u5c06\u7ba1\u7406\u7c7b\u76ee\u8bbe\u7f6e\u4e3a\u751f\u6548\u4e2d\u3002<\/p>\n<p>\u5ba1\u6279\u9a73\u56de\uff0c\u6e05\u7a7a\u8349\u7a3f\u5185\u5bb9\u3002<\/p>\n<p><img decoding=\"async\" width=\"699\" height=\"542\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1x\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u5ba1\u6279\u4eba\u5206\u914d\u673a\u5236\uff1a\u591a\u8349\u7a3f\u5e76\u884c\u5ba1\u6279\u65b9\u6848<\/strong><\/p>\n<p>\u4e00\u6b21\u63d0\u4ea4\u53ef\u80fd\u4f1a\u4ea7\u751f\u591a\u4e2a\u8349\u7a3f\uff0c\u5bf9\u5e94\u591a\u4e2a\u5ba1\u6279\u6d41\u7a0b\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"491\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1y\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u5ba1\u6279\u903b\u8f91<\/strong><\/p>\n<pre><code>public Map&lt;String, List&lt;String&gt;&gt; buildApprover(\n        ManagementCategoryDraftEntity draftEntity,\n        Map&lt;Long, Set&lt;String&gt;&gt; catAuditorMap,\n        Map&lt;String, String&gt; userIdOpenIdMap,\n        Integer hasApprover) {\n    \n    Map&lt;String, List&lt;String&gt;&gt; nodeApprover = new HashMap&lt;&gt;();\n\n\n    \/\/ \u65e0\u5ba1\u6279\u4eba\u6a21\u5f0f\uff0c\u76f4\u63a5\u67e5\u8be2\u8d85\u7ea7\u7ba1\u7406\u5458\n    if (!Objects.equals(hasApprover, ManagementCategoryUtils.HAS_APPROVER_YES)) {\n        nodeApprover.put(ManagementCategoryApprovalField.NODE_SUPER_ADMIN_AUDIT,\n                queryApproverList(0L, catAuditorMap, userIdOpenIdMap));\n        return nodeApprover;\n    }\n    \n    Integer level = draftEntity.getLevel();\n    Integer draftType = draftEntity.getType();\n    boolean isEditOperation = ManagementCategoryDraftTypeEnum.isEditOp(draftType);\n    \n    \/\/ \u52a8\u6001\u6784\u5efa\u5ba1\u6279\u94fe\uff08\u652f\u6301N\u7ea7\u7c7b\u76ee\uff09\n    List&lt;Integer&gt; approvalChain = buildApprovalChain(level);\n    for (int i = 0; i &lt; approvalChain.size(); i++) {\n        int currentLevel = approvalChain.get(i);\n        Long categoryId = getCategoryIdByLevel(draftEntity, currentLevel);\n        \n        \/\/ \u751f\u6210\u8282\u70b9\u540d\u79f0\uff08\u5982\uff1aNODE_LEVEL2_ADMIN_AUDIT\uff09\n        String nodeKey = String.format(\n                ManagementCategoryApprovalField.NODE_LEVEL_X_ADMIN_AUDIT_TEMPLATE,\n                currentLevel\n        );\n        \n        \/\/ \u7f16\u8f91\u64cd\u4f5c\u4e14\u5f53\u524d\u5c42\u7ea7\u7b49\u4e8e\u63d0\u4ea4\u5c42\u7ea7\u65f6\uff0c\u6dfb\u52a0\u672c\u7ea7\u5ba1\u6279\u4eba \u3010\u65b0\u589e\u7684\u7ba1\u7406\u7c7b\u76ee\u6ca1\u6709\u8fd8\u6ca1\u6709\u5bf9\u5e94\u7684\u5ba1\u6279\u4eba\u3011\n        if (isEditOperation &amp;&amp; currentLevel == level) {\n            addApprover(nodeApprover, nodeKey, categoryId, catAuditorMap, userIdOpenIdMap);\n        }\n        \n        \/\/ \u975e\u672c\u7ea7\u5ba1\u6279\u4eba\uff08\u4e0a\u7ea7\u5c42\u7ea7\uff09\n        if (currentLevel != level) {\n            addApprover(nodeApprover, nodeKey, categoryId, catAuditorMap, userIdOpenIdMap);\n        }\n    }\n    \n    return nodeApprover;\n}\n\n\nprivate List&lt;Integer&gt; buildApprovalChain(Integer level) {\n    List&lt;Integer&gt; approvalChain = new ArrayList&lt;&gt;();\n    if (level == 3) {\n        approvalChain.add(2); \/\/ \u7ba1\u4e8c\u5ba1\u6279\u4eba\n        approvalChain.add(1); \/\/ \u7ba1\u4e00\u5ba1\u6279\u4eba\n    } else if (level == 2) {\n        approvalChain.add(2); \/\/ \u7ba1\u4e8c\u5ba1\u6279\u4eba\n        approvalChain.add(1); \/\/ \u7ba1\u4e00\u5ba1\u6279\u4eba\n    } else if (level == 1) {\n        approvalChain.add(1); \/\/ \u7ba1\u4e00\u5ba1\u6279\u4eba\n        approvalChain.add(0); \/\/ \u8d85\u7ba1\n    }\n    return approvalChain;\n}<\/code><\/pre>\n<h2>3.3 \u6570\u636e\u6a21\u578b\u8bbe\u8ba1<\/h2>\n<p><img decoding=\"async\" width=\"723\" height=\"299\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1B\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>3.4 \u6570\u4ed3\u8ba1\u7b97\u903b\u8f91<\/h2>\n<p><strong>\u540c\u6b65\u6570\u636e\u65b9\u5f0f<\/strong><\/p>\n<p><strong>\u65b9\u6848\u4e00\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"592\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1C\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><br \/>\u6bcf\u6b21\u4fee\u6539\u89c4\u5219\u4e4b\u540e\u901a\u8fc7\u8c03\u7528SQL\u89e6\u53d1\u79bb\u7ebf\u8ba1\u7b97<\/p>\n<p><strong>\u4f18\u52bf<\/strong>\uff1a\u901a\u8fc7SQL\u8c03\u7528\u89e6\u53d1\u8ba1\u7b97\uff0c\u5931\u6548\u6027\u8f83\u9ad8<\/p>\n<p><strong>\u52a3\u52bf<\/strong>\uff1aODPS \u8d44\u6e90\u5cf0\u503c\u6d88\u8017\u4e0eSQL\u811a\u672c\u8026\u5408\u95ee\u9898<\/p>\n<ul>\n<li>\u56e0\u4e3a\u6574\u4e2a\u89c4\u5219\u4fee\u6539\u662f\u4e09\u7ea7\u7c7b\u76ee\u7ef4\u5ea6\uff0c\u5982\u679c\u540c\u65f6\u51e0\u5341\u51e0\u767e\u4e2a\u7c7b\u76ee\u89e6\u53d1\u89c4\u5219\u6539\u53d8\uff0c\u4f1a\u540c\u65f6\u89e6\u53d1\u51e0\u5341\u51e0\u767e\u4e2a\u79bb\u7ebf\u4efb\u52a1\u3002\u540c\u65f6\u9700\u8981\u5927\u91cfODPS \u8d44\u6e90\uff1b<\/li>\n<li>\u8c03\u7528SQL\u65b9\u5f0f\u9700\u8981\u628a\u5f53\u524d\u89c4\u5219\u4fee\u6539\u548c\u8ba1\u7b97\u903b\u8f91\u7684SQL\u4e00\u8d77\u8c03\u7528\u8ba1\u7b97\u3002<\/li>\n<\/ul>\n<p><strong>\u65b9\u6848\u4e8c\uff1a<\/strong><\/p>\n<p><img decoding=\"async\" width=\"708\" height=\"690\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1D\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u4f18\u52bf<\/strong>\uff1a\u540c\u65f6\u53ea\u4f1a\u4ea7\u751f\u4e00\u6b21\u89c4\u5219\u8ba1\u7b97<\/p>\n<p><strong>\u52a3\u52bf<\/strong>\uff1a\u5b9e\u65f6\u6027\u53d7\u9650\u4e8e\u79bb\u7ebf\u8ba1\u7b97\u5468\u671f<\/p>\n<ul>\n<li>\u5b9e\u65f6\u6027\u53d6\u51b3\u4e8e\u79bb\u7ebf\u89c4\u5219\u8ba1\u7b97\u7684\u5b9a\u65f6\u4efb\u52a1\u914d\u7f6e\u548c\u79bb\u7ebf\u6570\u636e\u540c\u6b65\u9891\u7387\uff0c\u5b9e\u65f6\u6027\u4e0d\u5982\u76f4\u63a5\u8c03\u7528SQL\u6027\u80fd\u597d<\/li>\n<li>\u4e0d\u91cd\u4e0d\u6f0f\u4e3a\u5f53\u524d\u6240\u6709\u53d8\u66f4\u89c4\u5219\u7ef4\u5ea6<\/li>\n<\/ul>\n<p><strong>\u6280\u672f\u51b3\u7b56\uff1a\u5e38\u6001\u5316\u8fed\u4ee3\u4e0b\u7684\u6700\u4f18\u89e3<\/strong><\/p>\n<p>\u8003\u8651\u5230\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u5e73\u5747\u53d8\u66f4\u9891\u7387\u4e0d\u9ad8\uff0c\u4e14\u53d8\u66f4\u65f6\u95f4\u70b9\u8f83\u4e3a\u96c6\u4e2d\uff08\u975e\u7d27\u6025\u573a\u666f\u5360\u6bd4 90%\uff09\uff0c\u6545\u9009\u62e9\u5b9a\u65f6\u4efb\u52a1\u65b9\u6848\u5b9e\u73b0\uff1a<\/p>\n<ul>\n<li><strong>\u8d44\u6e90\u5229\u7528\u7387\u63d0\u5347<\/strong>\uff1aODPS \u8ba1\u7b97\u8d44\u6e90\u6d88\u8017\u964d\u4f4e 80%\uff0c\u907f\u514d\u6279\u91cf\u53d8\u66f4\u65f6\u6570\u767e\u4e2a\u4efb\u52a1\u540c\u65f6\u89e6\u53d1\u7684\u8d44\u6e90\u5cf0\u503c\uff1b<\/li>\n<li><strong>\u5b8c\u6574\u6027\u4fdd\u969c<\/strong>\uff1a\u901a\u8fc7\u5168\u91cf\u7ef4\u5ea6\u626b\u63cf\u786e\u4fdd\u89c4\u5219\u6821\u9a8c\u65e0\u9057\u6f0f\uff0c\u8f83 SQL \u89e6\u53d1\u65b9\u6848\u63d0\u5347 20% \u6821\u9a8c\u8986\u76d6\u7387\uff1b<\/li>\n<li><strong>\u53ef\u7ef4\u62a4\u6027\u4f18\u5316<\/strong>\uff1a\u51cf\u5c11 SQL \u811a\u672c\u4e0e\u4e1a\u52a1\u903b\u8f91\u7684\u5f3a\u8026\u5408\uff0c\u7ef4\u62a4\u6210\u672c\u964d\u4f4e 80%\u3002<\/li>\n<\/ul>\n<p><strong>\u6570\u636e\u53d6\u6570\u903b\u8f91<\/strong><\/p>\n<p><strong>\u751f\u6548\u4e2d\u89c4\u5219\u8ba1\u7b97<\/strong><br \/><img decoding=\"async\" width=\"618\" height=\"682\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1F\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u8349\u7a3f+\u751f\u6548\u4e2d\u89c4\u683c\u8ba1\u7b97<\/strong><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"559\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1E\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u5982\u679c\u662f\u65b0\u589e\u7ba1\u7406\u7c7b\u76ee\uff0c\u76f4\u63a5\u53c2\u4e0e\u8ba1\u7b97\u3002<\/p>\n<p>\u5982\u679c\u662f\u5220\u9664\u7ba1\u7406\u7c7b\u76ee\uff0c\u9700\u8981\u5c06\u8be5\u5220\u9664\u8349\u7a3f\u4e2d\u5bf9\u5e94\u7684\u751f\u6548\u7ba1\u7406\u7c7b\u76ee\u6392\u9664\u6389\u3002<\/p>\n<p>\u5982\u679c\u662f\u66f4\u65b0\uff1a\u9700\u8981\u5c06\u8349\u7a3f\u4e2d\u7684\u7ba1\u7406\u7c7b\u76ee\u548c\u89c4\u5219\u66ff\u6362\u751f\u6548\u4e2d\u5bf9\u5e94\u7684\u7ba1\u7406\u7c7b\u76ee\u548c\u89c4\u5219\u3002<\/p>\n<p><strong>\u6570\u4ed3\u5b9e\u73b0<\/strong><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"220\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1H\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u6570\u636e\u6d41\u7a0b\u56fe<\/strong><\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"377\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmV1I\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<h2>\u56db\u3001\u9879\u76ee\u6210\u679c\u4e0e\u6280\u672f\u4ef7\u503c<\/h2>\n<p><strong>\u9884\u671f\u6548\u7387\u63d0\u5347\uff1a\u4ece \u201c\u5468\u7ea7\u201d \u5230 \u201c\u65e5\u7ea7\u201d \u7684\u8de8\u8d8a<\/strong><\/p>\n<ul>\n<li>\u7ba1\u7406\u4e00\u7ea7 \/ \u4e8c\u7ea7\u7c7b\u76ee\u53d8\u66f4\u5f00\u53d1\u96f6\u6210\u672c\uff0c\u65e0\u9700\u989d\u5916\u4eba\u529b\u6295\u5165<\/li>\n<li>\u7ba1\u7406\u4e09\u7ea7\u7c7b\u76ee\u53d8\u66f4\u76f8\u5173\u4eba\u529b\u6210\u672c\u964d\u4f4e 100%\uff0c\u65e0\u9700\u989d\u5916\u6295\u5165\u5f00\u53d1\u8d44\u6e90<\/li>\n<li>\u89c4\u5219\u4e0a\u7ebf\u5468\u671f\u538b\u7f29\u8d85 90%\uff0c\u4ec5\u9700 1 &#8211; 2 \u5929\u5373\u53ef\u5b8c\u6210\u4e0a\u7ebf<\/li>\n<\/ul>\n<p><strong>\u8d28\u91cf\u4fdd\u969c\uff1a\u81ea\u52a8\u5316\u6821\u9a8c\u66ff\u4ee3\u4eba\u5de5\u68b3\u7406<\/strong><\/p>\n<ul>\n<li>\u89c4\u5219\u91cd\u590d \/ \u9057\u6f0f\u68c0\u6d4b\u7531\u4eba\u5de5\u68b3\u7406-&gt;\u81ea\u52a8\u5316\u8ba1\u7b97<\/li>\n<li>\u4e0b\u6e38\u611f\u77e5\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u53d8\u66f4\u7531\u4eba\u5de5\u901a\u77e5-&gt;\u5b9e\u65f6\u611f\u77e5<\/li>\n<\/ul>\n<p><strong>\u6280\u672f\u6c89\u6dc0\uff1a\u89c4\u5219\u6a21\u578b\u5316\u80fd\u529b<\/strong><\/p>\n<p>\u6c89\u6dc0\u7ba1\u7406\u7c7b\u76ee\u89c4\u5219\u914d\u7f6e\u6a21\u578b\uff0c\u652f\u6301\u672a\u6765\u56db\u7ea7\u3001\u4e94\u7ea7\u591a\u7ea7\u7ba1\u7406\u7c7b\u76ee\u5feb\u901f\u9002\u914d\u3002<\/p>\n<h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<p><strong>\u672a\u6765\u4f18\u5316\u65b9\u5411\uff1a<\/strong><\/p>\n<ol>\n<li>\u89c4\u5219\u51b2\u7a81\u9884\u8b66\uff1a\u57fa\u4e8eAI\u9884\u6d4b\u9ad8\u98ce\u9669\u89c4\u5219\u53d8\u66f4\uff0c\u63d0\u524d\u89e6\u53d1\u6821\u9a8c<\/li>\n<li>\u63a5\u5165flink\u505a\u5230\u5b9e\u65f6\u8ba1\u7b97\u7ba1\u7406\u7c7b\u76ee\u548c\u5bf9\u5e94\u5546\u54c1\u5173\u7cfb<\/li>\n<\/ol>\n<p><strong>\u6280\u672f\u91cd\u6784\u7684\u672c\u8d28\u662f \u201c\u91ca\u653e\u4e1a\u52a1\u521b\u9020\u529b\u201d<\/strong><\/p>\n<p>\u7ba1\u7406\u7c7b\u76ee\u914d\u7f6e\u7ebf\u4e0a\u5316\u9879\u76ee\u7684\u6838\u5fc3\u4ef7\u503c\uff0c\u4e0d\u4ec5\u5728\u4e8e\u6280\u672f\u5c42\u9762\u7684\u6548\u7387\u63d0\u5347\uff0c\u66f4\u5728\u4e8e\u901a\u8fc7\u81ea\u52a8\u5316\u5de5\u5177\u94fe\uff0c\u8ba9\u4e1a\u52a1\u65b9\u4ece \u201c\u89c4\u5219\u63d0\u62a5\u7684\u6267\u884c\u8005\u201d \u8f6c\u53d8\u4e3a \u201c\u4e1a\u52a1\u7b56\u7565\u7684\u8bbe\u8ba1\u8005\u201d\u3002\u5f53\u6280\u672f\u67b6\u6784\u80fd\u591f\u5feb\u901f\u54cd\u5e94\u4e1a\u52a1\u8fed\u4ee3\u65f6\uff0c\u4f01\u4e1a\u624d\u80fd\u5728\u7535\u5546\u9886\u57df\u7684\u9ad8\u9891\u7ade\u4e89\u4e2d\u4fdd\u6301\u521b\u65b0\u6d3b\u529b\u3002<\/p>\n<h2>\u5f80\u671f\u56de\u987e<\/h2>\n<ol>\n<li>\u5927\u6a21\u578b\u5982\u4f55\u9769\u65b0\u641c\u7d22\u76f8\u5173\u6027\uff1f\u667a\u80fd\u5347\u7ea7\u8ba9\u641c\u7d22\u66f4\u201c\u61c2\u4f60\u201d\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>RAG\u2014Chunking\u7b56\u7565\u5b9e\u6218\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>\u544a\u522b\u6570\u636e\u65e0\u5e8f\uff1a\u5f97\u7269\u6570\u636e\u7814\u53d1\u4e0e\u7ba1\u7406\u5e73\u53f0\u7684\u7834\u5c40\u4e4b\u8def<\/li>\n<li>\u4ece\u4e00\u6b21\u542f\u52a8\u5931\u8d25\u6df1\u5165\u5256\u6790\uff1aSpring\u5faa\u73af\u4f9d\u8d56\u7684\u771f\u76f8\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>Apex AI\u8f85\u52a9\u7f16\u7801\u52a9\u624b\u7684\u8bbe\u8ba1\u548c\u5b9e\u8df5\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<\/ol>\n<h2>\u6587 \/\u7ef4\u5c71<\/h2>\n<p>\u5173\u6ce8\u5f97\u7269\u6280\u672f\uff0c\u6bcf\u5468\u66f4\u65b0\u6280\u672f\u5e72\u8d27<\/p>\n<p>\u8981\u662f\u89c9\u5f97\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u6b22\u8fce\u8bc4\u8bba\u8f6c\u53d1\u70b9\u8d5e\uff5e<\/p>\n<p>\u672a\u7ecf\u5f97\u7269\u6280\u672f\u8bb8\u53ef\u4e25\u7981\u8f6c\u8f7d\uff0c\u5426\u5219\u4f9d\u6cd5\u8ffd\u7a76\u6cd5\u5f8b\u8d23\u4efb\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047372934\">https:\/\/segmentfault.com\/a\/1190000047372934<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u5f15\u8a00 \u5728\u7535\u5546\u4ea4\u6613\u9886\u57df\uff0c\u7ba1\u7406\u7c7b\u76ee\u4f5c\u4e3a\u4e1a\u52a1\u8d23\u6743\u5212\u5206\u3001\u7edf\u7b79\u3001\u7ba1\u7406\u6838\u5fc3\u8f7d\u4f53\uff0c\u968f\u7740\u4e1a\u52a1\u590d\u6742\u6027\u7684\u63d0\u9ad8\uff0c\u5176\u89c4\u5219\u8c03\u6574\u9891\u7387\u4ece [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021068","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021068","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021068"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021068\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}