diff --git a/.node-red-data/projects/zsy/flows.json b/.node-red-data/projects/zsy/flows.json index c3dbd1f..dd26d6e 100644 --- a/.node-red-data/projects/zsy/flows.json +++ b/.node-red-data/projects/zsy/flows.json @@ -38,8 +38,8 @@ "topic": "", "payload": "{\"dsid\":\"a1b2c3d4-e5f6-7890-1234-567890abcdef\",\"wellId\":\"WELL-TEST-001\",\"wellCommonName\":\"zzlh测试用井名\",\"wellLegalName\":\"zzlh-test-01\",\"wellPurpose\":\"开发井\",\"wellType\":\"直井\",\"dataRegion\":\"ZZLH\",\"projectId\":\"PROJ-ZZLH-001\",\"projectName\":\"zzlh测试地质单元\",\"orgId\":\"ORG-ZZLH-01\",\"orgName\":\"zzlh采油厂\",\"bsflag\":1,\"wellState\":\"生产中\",\"spudDate\":\"2024-01-15\",\"completionDate\":\"2024-05-20\",\"prodDate\":\"2024-06-01\",\"egl\":145.5,\"kbd\":5.2,\"kb\":150.7,\"actualXAxis\":550123.45,\"actualYAxis\":4998765.32,\"coordinateSystemName\":\"zzlh测试坐标系\",\"geoDescription\":\"位于zzlh测试区域\",\"remarks\":\"这是一口用于系统测试的生产井。\",\"createUserId\":\"testuser001\",\"createDate\":\"2025-09-12T10:00:00Z\",\"updateUserId\":\"testuser001\",\"updateDate\":\"2025-09-12T10:00:00Z\"}", "payloadType": "json", - "x": 250, - "y": 280, + "x": 590, + "y": 620, "wires": [ [ "b111c6c8b79fa87a" @@ -62,8 +62,8 @@ "authType": "", "senderr": false, "headers": [], - "x": 410, - "y": 300, + "x": 650, + "y": 440, "wires": [ [ "273b9a8fdcb455b0" @@ -86,8 +86,8 @@ "authType": "", "senderr": false, "headers": [], - "x": 570, - "y": 300, + "x": 730, + "y": 420, "wires": [ [ "3411cd813b8257da", @@ -111,8 +111,8 @@ "authType": "", "senderr": false, "headers": [], - "x": 490, - "y": 440, + "x": 650, + "y": 560, "wires": [ [ "5b2d1fbd24b9e670" @@ -135,8 +135,8 @@ "authType": "", "senderr": false, "headers": [], - "x": 650, - "y": 420, + "x": 810, + "y": 540, "wires": [ [ "52a8205b9bf42110", @@ -160,8 +160,8 @@ "authType": "", "senderr": false, "headers": [], - "x": 610, - "y": 520, + "x": 770, + "y": 640, "wires": [ [] ] @@ -174,8 +174,8 @@ "property": "payload", "action": "", "pretty": false, - "x": 690, - "y": 140, + "x": 750, + "y": 260, "wires": [ [] ] @@ -198,11 +198,11 @@ "id": "be9c605d4cdaa297", "type": "http request", "z": "0ac020c7380665e7", - "name": "查询井", + "name": "创建井", "method": "POST", "ret": "txt", "paytoqs": "ignore", - "url": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well/1.0.0", + "url": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well", "tls": "", "persist": true, "proxy": "", @@ -210,10 +210,12 @@ "authType": "", "senderr": false, "headers": [], - "x": 370, - "y": 180, + "x": 350, + "y": 60, "wires": [ - [] + [ + "6f07c9e60472a814" + ] ] }, { @@ -229,6 +231,11 @@ "p": "headers", "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", "vt": "json" + }, + { + "p": "rejectUnauthorized", + "v": "false", + "vt": "str" } ], "repeat": "", @@ -239,11 +246,342 @@ "payload": "{\"version\":\"1.0.0\",\"act\":-1,\"data\":[{\"dsid\":\"testid2\",\"wellId\":\"WELL-zzlhTEST-002\",\"wellCommonName\":\"zzlh测试用井名\",\"wellLegalName\":\"zzlh-test-01\",\"wellPurpose\":\"开发井\",\"wellType\":\"直井\",\"dataRegion\":\"ZZLH\",\"projectId\":\"PROJ-ZZLH-001\",\"projectName\":\"zzlh测试地质单元\",\"orgId\":\"ORG-ZZLH-01\",\"orgName\":\"zzlh采油厂\",\"bsflag\":1,\"wellState\":\"生产中\",\"spudDate\":\"2024-01-15\",\"completionDate\":\"2024-05-20\",\"prodDate\":\"2024-06-01\",\"egl\":145.5,\"kbd\":5.2,\"kb\":150.7,\"actualXAxis\":550123.45,\"actualYAxis\":4998765.32,\"coordinateSystemName\":\"zzlh测试坐标系\",\"geoDescription\":\"位于zzlh测试区域\",\"remarks\":\"这是一口用于系统测试的生产井。\",\"createUserId\":\"testuser001\",\"createDate\":\"2025-09-12T10:00:00Z\",\"updateUserId\":\"testuser001\",\"updateDate\":\"2025-09-12T10:00:00Z\"}]}", "payloadType": "json", "x": 190, - "y": 180, + "y": 80, "wires": [ [ "be9c605d4cdaa297" ] ] + }, + { + "id": "6f07c9e60472a814", + "type": "debug", + "z": "0ac020c7380665e7", + "name": "创建结果", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 520, + "y": 80, + "wires": [] + }, + { + "id": "1b18d7419c63f2b5", + "type": "inject", + "z": "0ac020c7380665e7", + "name": "", + "props": [ + { + "p": "headers", + "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", + "vt": "json" + }, + { + "p": "rejectUnauthorized", + "v": "false", + "vt": "str" + }, + { + "p": "url", + "v": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well/1.0.0/testid2", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "x": 150, + "y": 220, + "wires": [ + [ + "70a49687f823bf4e" + ] + ] + }, + { + "id": "88cf35d496381288", + "type": "debug", + "z": "0ac020c7380665e7", + "name": "查询", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 470, + "y": 220, + "wires": [] + }, + { + "id": "70a49687f823bf4e", + "type": "http request", + "z": "0ac020c7380665e7", + "name": "查询井详情", + "method": "GET", + "ret": "txt", + "paytoqs": "ignore", + "url": "", + "tls": "", + "persist": true, + "proxy": "", + "insecureHTTPParser": false, + "authType": "basic", + "senderr": false, + "headers": [], + "x": 330, + "y": 240, + "wires": [ + [ + "88cf35d496381288" + ] + ] + }, + { + "id": "ae5c8d27d69b77ed", + "type": "http request", + "z": "0ac020c7380665e7", + "name": "更新井", + "method": "PUT", + "ret": "txt", + "paytoqs": "ignore", + "url": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well", + "tls": "", + "persist": true, + "proxy": "", + "insecureHTTPParser": false, + "authType": "", + "senderr": false, + "headers": [], + "x": 270, + "y": 340, + "wires": [ + [ + "2b37a50f557b48ff" + ] + ] + }, + { + "id": "7f1ff1fda219baaa", + "type": "inject", + "z": "0ac020c7380665e7", + "name": "", + "props": [ + { + "p": "payload" + }, + { + "p": "headers", + "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", + "vt": "json" + }, + { + "p": "rejectUnauthorized", + "v": "false", + "vt": "str" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "{\"version\":\"1.0.0\",\"act\":-1,\"data\":[{\"dsid\":\"testid2\",\"wellId\":\"WELL-zzlhTEST-002\",\"wellCommonName\":\"zzlh测试用井名\",\"wellLegalName\":\"zzlh-test-01\",\"wellPurpose\":\"开发井---更新16\",\"wellType\":\"直井\",\"dataRegion\":\"ZZLH\",\"projectId\":\"PROJ-ZZLH-001\",\"projectName\":\"zzlh测试地质单元\",\"orgId\":\"ORG-ZZLH-01\",\"orgName\":\"zzlh采油厂\",\"bsflag\":1,\"wellState\":\"生产中\",\"spudDate\":\"2024-01-15\",\"completionDate\":\"2024-05-20\",\"prodDate\":\"2024-06-01\",\"egl\":145.5,\"kbd\":5.2,\"kb\":150.7,\"actualXAxis\":550123.45,\"actualYAxis\":4998765.32,\"coordinateSystemName\":\"zzlh测试坐标系\",\"geoDescription\":\"位于zzlh测试区域\",\"remarks\":\"这是一口用于系统测试的生产井。\",\"createUserId\":\"testuser001\",\"createDate\":\"2025-09-12T10:00:00Z\",\"updateUserId\":\"testuser001\",\"updateDate\":\"2025-09-12T10:00:00Z\"}]}", + "payloadType": "json", + "x": 110, + "y": 280, + "wires": [ + [ + "ae5c8d27d69b77ed" + ] + ] + }, + { + "id": "2b37a50f557b48ff", + "type": "debug", + "z": "0ac020c7380665e7", + "name": "更新结果", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 460, + "y": 340, + "wires": [] + }, + { + "id": "c3514fbf44147aed", + "type": "inject", + "z": "0ac020c7380665e7", + "name": "", + "props": [ + { + "p": "headers", + "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", + "vt": "json" + }, + { + "p": "rejectUnauthorized", + "v": "false", + "vt": "str" + }, + { + "p": "url", + "v": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well", + "vt": "str" + }, + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "{\"version\":\"1.0.0\",\"data\":[\"testid2\"]}", + "payloadType": "json", + "x": 70, + "y": 380, + "wires": [ + [ + "0d437a2a77570c57" + ] + ] + }, + { + "id": "647fd9a7f8fc214c", + "type": "debug", + "z": "0ac020c7380665e7", + "name": "删除结果", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 500, + "y": 420, + "wires": [] + }, + { + "id": "0d437a2a77570c57", + "type": "http request", + "z": "0ac020c7380665e7", + "name": "删除井", + "method": "DELETE", + "ret": "txt", + "paytoqs": "ignore", + "url": "", + "tls": "", + "persist": true, + "proxy": "", + "insecureHTTPParser": false, + "authType": "basic", + "senderr": false, + "headers": [], + "x": 230, + "y": 420, + "wires": [ + [ + "647fd9a7f8fc214c" + ] + ] + }, + { + "id": "044945e983586ce5", + "type": "inject", + "z": "0ac020c7380665e7", + "name": "", + "props": [ + { + "p": "headers", + "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", + "vt": "json" + }, + { + "p": "rejectUnauthorized", + "v": "false", + "vt": "str" + }, + { + "p": "url", + "v": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well/1.0.0", + "vt": "str" + }, + { + "p": "payload" + } + ], + "repeat": "", + "crontab": "", + "once": false, + "onceDelay": 0.1, + "topic": "", + "payload": "{}", + "payloadType": "json", + "x": 110, + "y": 480, + "wires": [ + [ + "5921574867140eb3" + ] + ] + }, + { + "id": "286d3b129ca1b756", + "type": "debug", + "z": "0ac020c7380665e7", + "name": "查询", + "active": true, + "tosidebar": true, + "console": false, + "tostatus": false, + "complete": "payload", + "targetType": "msg", + "statusVal": "", + "statusType": "auto", + "x": 430, + "y": 480, + "wires": [] + }, + { + "id": "5921574867140eb3", + "type": "http request", + "z": "0ac020c7380665e7", + "name": "查询井列表", + "method": "POST", + "ret": "txt", + "paytoqs": "ignore", + "url": "", + "tls": "", + "persist": true, + "proxy": "", + "insecureHTTPParser": false, + "authType": "basic", + "senderr": false, + "headers": [], + "x": 290, + "y": 500, + "wires": [ + [ + "286d3b129ca1b756" + ] + ] } ] \ No newline at end of file diff --git a/.node-red-data/projects/zsy/flows_cred.json b/.node-red-data/projects/zsy/flows_cred.json index 811f371..0c8789c 100644 --- a/.node-red-data/projects/zsy/flows_cred.json +++ b/.node-red-data/projects/zsy/flows_cred.json @@ -2,5 +2,9 @@ "b111c6c8b79fa87a": {}, "be9c605d4cdaa297": {}, "8aaa24cf39b5742a": {}, - "97353ed49f690c0b": {} + "97353ed49f690c0b": {}, + "70a49687f823bf4e": {}, + "ae5c8d27d69b77ed": {}, + "0d437a2a77570c57": {}, + "5921574867140eb3": {} } \ No newline at end of file