This commit is contained in:
Your Name 2025-09-29 17:22:43 +08:00
parent 14af400046
commit 944dc6c87d
2 changed files with 363 additions and 21 deletions

View File

@ -38,8 +38,8 @@
"topic": "", "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\"}", "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", "payloadType": "json",
"x": 250, "x": 590,
"y": 280, "y": 620,
"wires": [ "wires": [
[ [
"b111c6c8b79fa87a" "b111c6c8b79fa87a"
@ -62,8 +62,8 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 410, "x": 650,
"y": 300, "y": 440,
"wires": [ "wires": [
[ [
"273b9a8fdcb455b0" "273b9a8fdcb455b0"
@ -86,8 +86,8 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 570, "x": 730,
"y": 300, "y": 420,
"wires": [ "wires": [
[ [
"3411cd813b8257da", "3411cd813b8257da",
@ -111,8 +111,8 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 490, "x": 650,
"y": 440, "y": 560,
"wires": [ "wires": [
[ [
"5b2d1fbd24b9e670" "5b2d1fbd24b9e670"
@ -135,8 +135,8 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 650, "x": 810,
"y": 420, "y": 540,
"wires": [ "wires": [
[ [
"52a8205b9bf42110", "52a8205b9bf42110",
@ -160,8 +160,8 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 610, "x": 770,
"y": 520, "y": 640,
"wires": [ "wires": [
[] []
] ]
@ -174,8 +174,8 @@
"property": "payload", "property": "payload",
"action": "", "action": "",
"pretty": false, "pretty": false,
"x": 690, "x": 750,
"y": 140, "y": 260,
"wires": [ "wires": [
[] []
] ]
@ -198,11 +198,11 @@
"id": "be9c605d4cdaa297", "id": "be9c605d4cdaa297",
"type": "http request", "type": "http request",
"z": "0ac020c7380665e7", "z": "0ac020c7380665e7",
"name": "查询井", "name": "创建井",
"method": "POST", "method": "POST",
"ret": "txt", "ret": "txt",
"paytoqs": "ignore", "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": "", "tls": "",
"persist": true, "persist": true,
"proxy": "", "proxy": "",
@ -210,10 +210,12 @@
"authType": "", "authType": "",
"senderr": false, "senderr": false,
"headers": [], "headers": [],
"x": 370, "x": 350,
"y": 180, "y": 60,
"wires": [ "wires": [
[] [
"6f07c9e60472a814"
]
] ]
}, },
{ {
@ -229,6 +231,11 @@
"p": "headers", "p": "headers",
"v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}", "v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}",
"vt": "json" "vt": "json"
},
{
"p": "rejectUnauthorized",
"v": "false",
"vt": "str"
} }
], ],
"repeat": "", "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\"}]}", "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", "payloadType": "json",
"x": 190, "x": 190,
"y": 180, "y": 80,
"wires": [ "wires": [
[ [
"be9c605d4cdaa297" "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"
]
]
} }
] ]

View File

@ -2,5 +2,9 @@
"b111c6c8b79fa87a": {}, "b111c6c8b79fa87a": {},
"be9c605d4cdaa297": {}, "be9c605d4cdaa297": {},
"8aaa24cf39b5742a": {}, "8aaa24cf39b5742a": {},
"97353ed49f690c0b": {} "97353ed49f690c0b": {},
"70a49687f823bf4e": {},
"ae5c8d27d69b77ed": {},
"0d437a2a77570c57": {},
"5921574867140eb3": {}
} }