zsyproject

This commit is contained in:
Your Name
2025-09-13 15:21:09 +08:00
parent 949df9efbe
commit 14af400046
4 changed files with 264 additions and 96 deletions
+46 -58
View File
@@ -8,12 +8,18 @@
"env": []
},
{
"id": "460931c33cd05cf4",
"type": "tab",
"label": "流程 2",
"disabled": false,
"info": "",
"env": []
"id": "8aaa24cf39b5742a",
"type": "http proxy",
"name": "https",
"url": "https://10.22.98.21:8080",
"noproxy": []
},
{
"id": "97353ed49f690c0b",
"type": "http proxy",
"name": "http",
"url": "http://10.22.98.21:8080",
"noproxy": []
},
{
"id": "c06c5e3af1cf4806",
@@ -23,10 +29,6 @@
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
@@ -34,8 +36,8 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"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,
"wires": [
@@ -50,7 +52,7 @@
"z": "0ac020c7380665e7",
"name": "创建井",
"method": "POST",
"ret": "txt",
"ret": "obj",
"paytoqs": "ignore",
"url": "",
"tls": "",
@@ -193,17 +195,40 @@
]
},
{
"id": "c70a7fe74cd7b831",
"id": "be9c605d4cdaa297",
"type": "http request",
"z": "0ac020c7380665e7",
"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",
"tls": "",
"persist": true,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 370,
"y": 180,
"wires": [
[]
]
},
{
"id": "96fbb1fa63a1cb8b",
"type": "inject",
"z": "460931c33cd05cf4",
"z": "0ac020c7380665e7",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
"p": "headers",
"v": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}",
"vt": "json"
}
],
"repeat": "",
@@ -211,50 +236,13 @@
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 150,
"y": 120,
"wires": [
[
"23163fb7c2ad16f6"
]
]
},
{
"id": "d8b420cdec2db062",
"type": "debug",
"z": "460931c33cd05cf4",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 160,
"wires": []
},
{
"id": "23163fb7c2ad16f6",
"type": "function",
"z": "460931c33cd05cf4",
"name": "function 1",
"func": "var t=new Date(msg.payload);\nmsg.payload=t;\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 300,
"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,
"wires": [
[
"d8b420cdec2db062"
"be9c605d4cdaa297"
]
]
}
+6 -1
View File
@@ -1 +1,6 @@
{}
{
"b111c6c8b79fa87a": {},
"be9c605d4cdaa297": {},
"8aaa24cf39b5742a": {},
"97353ed49f690c0b": {}
}