auto flow
This commit is contained in:
parent
944dc6c87d
commit
a23b999b12
@ -27,6 +27,9 @@
|
|||||||
"name": "gongwenxin",
|
"name": "gongwenxin",
|
||||||
"email": "gongwenxin@buaa.edu.cn"
|
"email": "gongwenxin@buaa.edu.cn"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"debug": {
|
||||||
|
"clearType": "all"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -21,179 +21,6 @@
|
|||||||
"url": "http://10.22.98.21:8080",
|
"url": "http://10.22.98.21:8080",
|
||||||
"noproxy": []
|
"noproxy": []
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"id": "c06c5e3af1cf4806",
|
|
||||||
"type": "inject",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "井数据",
|
|
||||||
"props": [
|
|
||||||
{
|
|
||||||
"p": "payload"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"repeat": "",
|
|
||||||
"crontab": "",
|
|
||||||
"once": false,
|
|
||||||
"onceDelay": 0.1,
|
|
||||||
"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": 590,
|
|
||||||
"y": 620,
|
|
||||||
"wires": [
|
|
||||||
[
|
|
||||||
"b111c6c8b79fa87a"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "b111c6c8b79fa87a",
|
|
||||||
"type": "http request",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "创建井",
|
|
||||||
"method": "POST",
|
|
||||||
"ret": "obj",
|
|
||||||
"paytoqs": "ignore",
|
|
||||||
"url": "",
|
|
||||||
"tls": "",
|
|
||||||
"persist": false,
|
|
||||||
"proxy": "",
|
|
||||||
"insecureHTTPParser": false,
|
|
||||||
"authType": "",
|
|
||||||
"senderr": false,
|
|
||||||
"headers": [],
|
|
||||||
"x": 650,
|
|
||||||
"y": 440,
|
|
||||||
"wires": [
|
|
||||||
[
|
|
||||||
"273b9a8fdcb455b0"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "273b9a8fdcb455b0",
|
|
||||||
"type": "http request",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "列出井信息",
|
|
||||||
"method": "GET",
|
|
||||||
"ret": "txt",
|
|
||||||
"paytoqs": "ignore",
|
|
||||||
"url": "",
|
|
||||||
"tls": "",
|
|
||||||
"persist": false,
|
|
||||||
"proxy": "",
|
|
||||||
"insecureHTTPParser": false,
|
|
||||||
"authType": "",
|
|
||||||
"senderr": false,
|
|
||||||
"headers": [],
|
|
||||||
"x": 730,
|
|
||||||
"y": 420,
|
|
||||||
"wires": [
|
|
||||||
[
|
|
||||||
"3411cd813b8257da",
|
|
||||||
"5d9b263c1c44249b"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "3411cd813b8257da",
|
|
||||||
"type": "http request",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "修改井",
|
|
||||||
"method": "POST",
|
|
||||||
"ret": "txt",
|
|
||||||
"paytoqs": "ignore",
|
|
||||||
"url": "",
|
|
||||||
"tls": "",
|
|
||||||
"persist": false,
|
|
||||||
"proxy": "",
|
|
||||||
"insecureHTTPParser": false,
|
|
||||||
"authType": "",
|
|
||||||
"senderr": false,
|
|
||||||
"headers": [],
|
|
||||||
"x": 650,
|
|
||||||
"y": 560,
|
|
||||||
"wires": [
|
|
||||||
[
|
|
||||||
"5b2d1fbd24b9e670"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "5b2d1fbd24b9e670",
|
|
||||||
"type": "http request",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "列出井信息",
|
|
||||||
"method": "GET",
|
|
||||||
"ret": "txt",
|
|
||||||
"paytoqs": "ignore",
|
|
||||||
"url": "",
|
|
||||||
"tls": "",
|
|
||||||
"persist": false,
|
|
||||||
"proxy": "",
|
|
||||||
"insecureHTTPParser": false,
|
|
||||||
"authType": "",
|
|
||||||
"senderr": false,
|
|
||||||
"headers": [],
|
|
||||||
"x": 810,
|
|
||||||
"y": 540,
|
|
||||||
"wires": [
|
|
||||||
[
|
|
||||||
"52a8205b9bf42110",
|
|
||||||
"5a3ba7b68b7f09d8"
|
|
||||||
]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "52a8205b9bf42110",
|
|
||||||
"type": "http request",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "删除井",
|
|
||||||
"method": "POST",
|
|
||||||
"ret": "txt",
|
|
||||||
"paytoqs": "ignore",
|
|
||||||
"url": "",
|
|
||||||
"tls": "",
|
|
||||||
"persist": false,
|
|
||||||
"proxy": "",
|
|
||||||
"insecureHTTPParser": false,
|
|
||||||
"authType": "",
|
|
||||||
"senderr": false,
|
|
||||||
"headers": [],
|
|
||||||
"x": 770,
|
|
||||||
"y": 640,
|
|
||||||
"wires": [
|
|
||||||
[]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "5d9b263c1c44249b",
|
|
||||||
"type": "json",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "展示井信息",
|
|
||||||
"property": "payload",
|
|
||||||
"action": "",
|
|
||||||
"pretty": false,
|
|
||||||
"x": 750,
|
|
||||||
"y": 260,
|
|
||||||
"wires": [
|
|
||||||
[]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "5a3ba7b68b7f09d8",
|
|
||||||
"type": "json",
|
|
||||||
"z": "0ac020c7380665e7",
|
|
||||||
"name": "展示井信息",
|
|
||||||
"property": "payload",
|
|
||||||
"action": "",
|
|
||||||
"pretty": false,
|
|
||||||
"x": 830,
|
|
||||||
"y": 260,
|
|
||||||
"wires": [
|
|
||||||
[]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"id": "be9c605d4cdaa297",
|
"id": "be9c605d4cdaa297",
|
||||||
"type": "http request",
|
"type": "http request",
|
||||||
@ -210,11 +37,13 @@
|
|||||||
"authType": "",
|
"authType": "",
|
||||||
"senderr": false,
|
"senderr": false,
|
||||||
"headers": [],
|
"headers": [],
|
||||||
"x": 350,
|
"x": 1030,
|
||||||
"y": 60,
|
"y": 560,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"6f07c9e60472a814"
|
"6f07c9e60472a814",
|
||||||
|
"2220f90bcc99b3a4",
|
||||||
|
"df389955c2ae3156"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -222,7 +51,7 @@
|
|||||||
"id": "96fbb1fa63a1cb8b",
|
"id": "96fbb1fa63a1cb8b",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "",
|
"name": "创建",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"p": "payload"
|
"p": "payload"
|
||||||
@ -245,11 +74,11 @@
|
|||||||
"topic": "",
|
"topic": "",
|
||||||
"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": 850,
|
||||||
"y": 80,
|
"y": 400,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"be9c605d4cdaa297"
|
"013f3a0718a44e18"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -258,7 +87,7 @@
|
|||||||
"type": "debug",
|
"type": "debug",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "创建结果",
|
"name": "创建结果",
|
||||||
"active": true,
|
"active": false,
|
||||||
"tosidebar": true,
|
"tosidebar": true,
|
||||||
"console": false,
|
"console": false,
|
||||||
"tostatus": false,
|
"tostatus": false,
|
||||||
@ -266,15 +95,15 @@
|
|||||||
"targetType": "msg",
|
"targetType": "msg",
|
||||||
"statusVal": "",
|
"statusVal": "",
|
||||||
"statusType": "auto",
|
"statusType": "auto",
|
||||||
"x": 520,
|
"x": 1180,
|
||||||
"y": 80,
|
"y": 440,
|
||||||
"wires": []
|
"wires": []
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "1b18d7419c63f2b5",
|
"id": "1b18d7419c63f2b5",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "",
|
"name": "查询详情",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"p": "headers",
|
"p": "headers",
|
||||||
@ -297,7 +126,7 @@
|
|||||||
"once": false,
|
"once": false,
|
||||||
"onceDelay": 0.1,
|
"onceDelay": 0.1,
|
||||||
"topic": "",
|
"topic": "",
|
||||||
"x": 150,
|
"x": 160,
|
||||||
"y": 220,
|
"y": 220,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
@ -374,7 +203,7 @@
|
|||||||
"id": "7f1ff1fda219baaa",
|
"id": "7f1ff1fda219baaa",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "",
|
"name": "更新",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"p": "payload"
|
"p": "payload"
|
||||||
@ -426,7 +255,7 @@
|
|||||||
"id": "c3514fbf44147aed",
|
"id": "c3514fbf44147aed",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "",
|
"name": "删除",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"p": "headers",
|
"p": "headers",
|
||||||
@ -454,7 +283,7 @@
|
|||||||
"topic": "",
|
"topic": "",
|
||||||
"payload": "{\"version\":\"1.0.0\",\"data\":[\"testid2\"]}",
|
"payload": "{\"version\":\"1.0.0\",\"data\":[\"testid2\"]}",
|
||||||
"payloadType": "json",
|
"payloadType": "json",
|
||||||
"x": 70,
|
"x": 90,
|
||||||
"y": 380,
|
"y": 380,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
@ -492,7 +321,7 @@
|
|||||||
"persist": true,
|
"persist": true,
|
||||||
"proxy": "",
|
"proxy": "",
|
||||||
"insecureHTTPParser": false,
|
"insecureHTTPParser": false,
|
||||||
"authType": "basic",
|
"authType": "",
|
||||||
"senderr": false,
|
"senderr": false,
|
||||||
"headers": [],
|
"headers": [],
|
||||||
"x": 230,
|
"x": 230,
|
||||||
@ -507,7 +336,7 @@
|
|||||||
"id": "044945e983586ce5",
|
"id": "044945e983586ce5",
|
||||||
"type": "inject",
|
"type": "inject",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "",
|
"name": "查询列表",
|
||||||
"props": [
|
"props": [
|
||||||
{
|
{
|
||||||
"p": "headers",
|
"p": "headers",
|
||||||
@ -535,7 +364,7 @@
|
|||||||
"topic": "",
|
"topic": "",
|
||||||
"payload": "{}",
|
"payload": "{}",
|
||||||
"payloadType": "json",
|
"payloadType": "json",
|
||||||
"x": 110,
|
"x": 120,
|
||||||
"y": 480,
|
"y": 480,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
@ -548,7 +377,7 @@
|
|||||||
"type": "debug",
|
"type": "debug",
|
||||||
"z": "0ac020c7380665e7",
|
"z": "0ac020c7380665e7",
|
||||||
"name": "查询",
|
"name": "查询",
|
||||||
"active": true,
|
"active": false,
|
||||||
"tosidebar": true,
|
"tosidebar": true,
|
||||||
"console": false,
|
"console": false,
|
||||||
"tostatus": false,
|
"tostatus": false,
|
||||||
@ -556,7 +385,7 @@
|
|||||||
"targetType": "msg",
|
"targetType": "msg",
|
||||||
"statusVal": "",
|
"statusVal": "",
|
||||||
"statusType": "auto",
|
"statusType": "auto",
|
||||||
"x": 430,
|
"x": 490,
|
||||||
"y": 480,
|
"y": 480,
|
||||||
"wires": []
|
"wires": []
|
||||||
},
|
},
|
||||||
@ -573,15 +402,501 @@
|
|||||||
"persist": true,
|
"persist": true,
|
||||||
"proxy": "",
|
"proxy": "",
|
||||||
"insecureHTTPParser": false,
|
"insecureHTTPParser": false,
|
||||||
"authType": "basic",
|
"authType": "",
|
||||||
"senderr": false,
|
"senderr": false,
|
||||||
"headers": [],
|
"headers": [],
|
||||||
"x": 290,
|
"x": 290,
|
||||||
"y": 500,
|
"y": 500,
|
||||||
"wires": [
|
"wires": [
|
||||||
[
|
[
|
||||||
"286d3b129ca1b756"
|
"286d3b129ca1b756",
|
||||||
|
"819906f13bb83e88"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "819906f13bb83e88",
|
||||||
|
"type": "function",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "function 1",
|
||||||
|
"func": "try {\n \n const payload = JSON.parse(msg.payload);\n if (payload && payload.data && Array.isArray(payload.data.list)) {\n msg.isEmpty = payload.data.list.length === 0;\n } else {\n msg.isEmpty = false; \n }\n} catch (e) {\n \n \n msg.isEmpty = false\n}\n\n\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"timeout": 0,
|
||||||
|
"noerr": 0,
|
||||||
|
"initialize": "",
|
||||||
|
"finalize": "",
|
||||||
|
"libs": [],
|
||||||
|
"x": 300,
|
||||||
|
"y": 600,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"7b828761c4ae4f35"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "7b828761c4ae4f35",
|
||||||
|
"type": "switch",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "",
|
||||||
|
"property": "isEmpty",
|
||||||
|
"propertyType": "msg",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"t": "eq",
|
||||||
|
"v": "true",
|
||||||
|
"vt": "jsonata"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "neq",
|
||||||
|
"v": "true",
|
||||||
|
"vt": "jsonata"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"checkall": "true",
|
||||||
|
"repair": false,
|
||||||
|
"outputs": 2,
|
||||||
|
"x": 470,
|
||||||
|
"y": 580,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"e308201b5e361b2e",
|
||||||
|
"013f3a0718a44e18"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"5712828285fd7a38"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "5712828285fd7a38",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 1",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "\"初始不为空,错误\"",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 490,
|
||||||
|
"y": 680,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e308201b5e361b2e",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 2",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "\"初始为空,正确\"",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 690,
|
||||||
|
"y": 640,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "013f3a0718a44e18",
|
||||||
|
"type": "change",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "payload",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "{\"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\"}]}",
|
||||||
|
"tot": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "headers",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}",
|
||||||
|
"tot": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "rejectUnauthorized",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "false",
|
||||||
|
"tot": "str"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"action": "",
|
||||||
|
"property": "",
|
||||||
|
"from": "",
|
||||||
|
"to": "",
|
||||||
|
"reg": false,
|
||||||
|
"x": 880,
|
||||||
|
"y": 560,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"be9c605d4cdaa297"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8f574d489345a331",
|
||||||
|
"type": "switch",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "",
|
||||||
|
"property": "isCreated",
|
||||||
|
"propertyType": "msg",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"t": "eq",
|
||||||
|
"v": "true",
|
||||||
|
"vt": "jsonata"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "eq",
|
||||||
|
"v": "false",
|
||||||
|
"vt": "jsonata"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"checkall": "true",
|
||||||
|
"repair": false,
|
||||||
|
"outputs": 2,
|
||||||
|
"x": 1330,
|
||||||
|
"y": 620,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"23f668f265c1db5c",
|
||||||
|
"8f280fa3aac33505"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"4fd140a8f2df7e53"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "2220f90bcc99b3a4",
|
||||||
|
"type": "function",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "function 2",
|
||||||
|
"func": "try {\n const payloadObject = JSON.parse(msg.payload);\n msg.isCreated = (payloadObject.code === 0);\n\n} catch (e) {\n msg.isCreated = false;\n}\n\n// 返回更新后的 msg 对象\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"timeout": 0,
|
||||||
|
"noerr": 0,
|
||||||
|
"initialize": "",
|
||||||
|
"finalize": "",
|
||||||
|
"libs": [],
|
||||||
|
"x": 1160,
|
||||||
|
"y": 620,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"8f574d489345a331"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "23f668f265c1db5c",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 3",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "\"创建成功\"",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 1390,
|
||||||
|
"y": 460,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "4fd140a8f2df7e53",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 4",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "创建失败",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 1410,
|
||||||
|
"y": 740,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "df389955c2ae3156",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 6",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "msg",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 1000,
|
||||||
|
"y": 680,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "39c28a10430cce71",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 5",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "false",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 800,
|
||||||
|
"y": 740,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "551a78c76ae2bccf",
|
||||||
|
"type": "http request",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "删除井",
|
||||||
|
"method": "DELETE",
|
||||||
|
"ret": "txt",
|
||||||
|
"paytoqs": "ignore",
|
||||||
|
"url": "",
|
||||||
|
"tls": "",
|
||||||
|
"persist": true,
|
||||||
|
"proxy": "",
|
||||||
|
"insecureHTTPParser": false,
|
||||||
|
"authType": "",
|
||||||
|
"senderr": false,
|
||||||
|
"headers": [],
|
||||||
|
"x": 1770,
|
||||||
|
"y": 660,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"99f3d98419231d12",
|
||||||
|
"e3cc68ad6021510f"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "99f3d98419231d12",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "删除结果",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "payload",
|
||||||
|
"targetType": "msg",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 1960,
|
||||||
|
"y": 540,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "7d94b96bcc85d684",
|
||||||
|
"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": 1710,
|
||||||
|
"y": 480,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"551a78c76ae2bccf"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "8f280fa3aac33505",
|
||||||
|
"type": "change",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "payload",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "{\"version\":\"1.0.0\",\"data\":[\"testid2\"]}",
|
||||||
|
"tot": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "headers",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "{\"Content-Type\":\"application/json\",\"Authorization\":\"1\",\"Dataregion\":\"ZZLH\"}",
|
||||||
|
"tot": "json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "rejectUnauthorized",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "false",
|
||||||
|
"tot": "str"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "set",
|
||||||
|
"p": "url",
|
||||||
|
"pt": "msg",
|
||||||
|
"to": "https://www.dev.ideas.cnpc/api/dms/well_kd_wellbore_ideas01/v1/cd_well",
|
||||||
|
"tot": "str"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"action": "",
|
||||||
|
"property": "",
|
||||||
|
"from": "",
|
||||||
|
"to": "",
|
||||||
|
"reg": false,
|
||||||
|
"x": 1580,
|
||||||
|
"y": 620,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"551a78c76ae2bccf"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "6585c529e8732137",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 7",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "\"删除成功\"",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 2170,
|
||||||
|
"y": 540,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "3b9a9af3fb68645f",
|
||||||
|
"type": "switch",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "",
|
||||||
|
"property": "isDeleted",
|
||||||
|
"propertyType": "msg",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"t": "eq",
|
||||||
|
"v": "true",
|
||||||
|
"vt": "jsonata"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"t": "eq",
|
||||||
|
"v": "false",
|
||||||
|
"vt": "jsonata"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"checkall": "true",
|
||||||
|
"repair": false,
|
||||||
|
"outputs": 2,
|
||||||
|
"x": 2110,
|
||||||
|
"y": 700,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"6585c529e8732137"
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"f80987279214f312"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "f80987279214f312",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 8",
|
||||||
|
"active": true,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": true,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "删除失败",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 2190,
|
||||||
|
"y": 820,
|
||||||
|
"wires": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "e3cc68ad6021510f",
|
||||||
|
"type": "function",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "function 3",
|
||||||
|
"func": "try {\n const payloadObject = JSON.parse(msg.payload);\n msg.isDeleted = (payloadObject.code === 0);\n\n} catch (e) {\n msg.isDeleted = false;\n}\n\n// 返回更新后的 msg 对象\nreturn msg;",
|
||||||
|
"outputs": 1,
|
||||||
|
"timeout": 0,
|
||||||
|
"noerr": 0,
|
||||||
|
"initialize": "",
|
||||||
|
"finalize": "",
|
||||||
|
"libs": [],
|
||||||
|
"x": 1920,
|
||||||
|
"y": 700,
|
||||||
|
"wires": [
|
||||||
|
[
|
||||||
|
"3b9a9af3fb68645f",
|
||||||
|
"f92150ebdd4ca3ff"
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "f92150ebdd4ca3ff",
|
||||||
|
"type": "debug",
|
||||||
|
"z": "0ac020c7380665e7",
|
||||||
|
"name": "debug 9",
|
||||||
|
"active": false,
|
||||||
|
"tosidebar": true,
|
||||||
|
"console": false,
|
||||||
|
"tostatus": false,
|
||||||
|
"complete": "msg",
|
||||||
|
"targetType": "jsonata",
|
||||||
|
"statusVal": "",
|
||||||
|
"statusType": "auto",
|
||||||
|
"x": 2000,
|
||||||
|
"y": 760,
|
||||||
|
"wires": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"b111c6c8b79fa87a": {},
|
|
||||||
"be9c605d4cdaa297": {},
|
"be9c605d4cdaa297": {},
|
||||||
"8aaa24cf39b5742a": {},
|
"8aaa24cf39b5742a": {},
|
||||||
"97353ed49f690c0b": {},
|
"97353ed49f690c0b": {},
|
||||||
"70a49687f823bf4e": {},
|
"70a49687f823bf4e": {},
|
||||||
"ae5c8d27d69b77ed": {},
|
"ae5c8d27d69b77ed": {},
|
||||||
"0d437a2a77570c57": {},
|
"0d437a2a77570c57": {},
|
||||||
"5921574867140eb3": {}
|
"5921574867140eb3": {},
|
||||||
|
"551a78c76ae2bccf": {}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user