From e7b9d5182f65cc8692d583559984b93dc82fef97 Mon Sep 17 00:00:00 2001 From: lucas Date: Thu, 18 Sep 2025 12:29:41 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=89=BF=E5=BE=B7=E9=87=91=E9=9A=85?= =?UTF-8?q?=E6=B0=B4=E6=B3=A5=E6=9C=89=E9=99=90=E8=B4=A3=E4=BB=BB=E5=85=AC?= =?UTF-8?q?=E5=8F=B8=E5=9B=9B=E6=96=B9=E6=B4=9E=E5=AD=90=E6=B2=9F=E7=86=94?= =?UTF-8?q?=E5=89=82=E7=94=A8=E7=9F=B3=E7=81=B0=E7=9F=B3=E7=9F=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...隅水泥_河北矿山_四方洞子.json | 34 +++++++++++++++++++ .../config_安心云告警双控.yaml | 0 ...德金隅水泥_河北矿山_东山.json | 34 +++++++++++++++++++ consumers/consumerCDJYSN.go | 16 +++++++++ 4 files changed, 84 insertions(+) create mode 100644 configFiles/config_承德金隅水泥_河北矿山_四方洞子.json rename configFiles/{ => 弃用备份}/config_安心云告警双控.yaml (100%) create mode 100644 configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json diff --git a/configFiles/config_承德金隅水泥_河北矿山_四方洞子.json b/configFiles/config_承德金隅水泥_河北矿山_四方洞子.json new file mode 100644 index 0000000..b1a9b02 --- /dev/null +++ b/configFiles/config_承德金隅水泥_河北矿山_四方洞子.json @@ -0,0 +1,34 @@ +{ + "consumer": "consumerCDJYSN", + "ioConfig": { + "in": { + "http": { + "url": "https://esproxy.anxinyun.cn/anxincloud_themes/_search" + }, + "cronStr": "51 0/1 * * *" + }, + "out": { + "file": { + "directory": "D:\\工作记录\\每月任务需求\\202402需求\\河北矿山数据本地数据工具开发\\saveTxts2", + "fileNameExtension": ".txt" + } + } + }, + "info": { + "structureId": "3232", + "structUploadCode": "130804030001", + "fileNamePrefix": "130804030001_LTCDSS", + "fileContentHeader": "130804030001;承德金隅水泥有限责任公司四方洞子沟熔剂用石灰石矿;" + }, + "sensorMap": { + "GnssSensorMap": { + "WY02-01-P04": "100011", + "WY03-01-P05": "100012", + "WY04-01-P06": "100021", + "WY05-03-P07": "100022" + }, + "RainSensorMap": { + "YL02": "200001" + } + } +} \ No newline at end of file diff --git a/configFiles/config_安心云告警双控.yaml b/configFiles/弃用备份/config_安心云告警双控.yaml similarity index 100% rename from configFiles/config_安心云告警双控.yaml rename to configFiles/弃用备份/config_安心云告警双控.yaml diff --git a/configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json b/configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json new file mode 100644 index 0000000..5ce40d8 --- /dev/null +++ b/configFiles/弃用备份/config_承德金隅水泥_河北矿山_东山.json @@ -0,0 +1,34 @@ +{ + "consumer": "consumerCDJYSN", + "ioConfig": { + "in": { + "http": { + "url": "https://esproxy.anxinyun.cn/anxincloud_themes/_search" + }, + "cronStr": "32 0/1 * * *" + }, + "out": { + "file": { + "directory": "G:\\工作记录\\每月任务需求\\202402需求\\河北矿山数据本地数据工具开发\\saveTxts2", + "fileNameExtension": ".txt" + } + } + }, + "info": { + "structureId": "3232", + "structUploadCode": "130804030001", + "fileNamePrefix": "130804030001_LTCDSS", + "fileContentHeader": "130804030001;承德金隅水泥有限责任公司四方洞子沟熔剂用石灰石矿;" + }, + "sensorMap": { + "GnssSensorMap": { + "WY01-01-P01": "100011", + "WY01-02-P02": "100012", + "WY01-03-P03": "100021", + "WY01-03-P08": "100022" + }, + "RainSensorMap": { + "YL01": "200001" + } + } +} \ No newline at end of file diff --git a/consumers/consumerCDJYSN.go b/consumers/consumerCDJYSN.go index 4cbea58..a8244ba 100644 --- a/consumers/consumerCDJYSN.go +++ b/consumers/consumerCDJYSN.go @@ -204,6 +204,22 @@ func (the *consumerCDJYSN) saveConfig() { "^13028403000102100062;TS212_G6;01;130284030001;0101;02;;mm;;;;;;桃山;118.351561;40.117217;212;2020-08-01;司南导航;15;1;0;2024-09-25 10:00:00" + "^]]]" contentConfig = contentConfigHead + contentConfigBody + case "3232": //承德金隅水泥有限公司边坡在线监测—东山 + contentConfigHead := the.ConfigInfo.Info["fileContentHeader"] + //非煤矿山编码 130804030001,边坡名称 四方洞子沟 + "CDJYBPJCXT;" + //系统型号 + "承德金隅水泥有限责任公司边坡监测;" + //系统名称 + "承德金隅水泥有限公司;" + //生产厂家名称 + "2030-12-30;" + //安标有效期 + "2022-12-01 10:00:00" //数据上传时间 + contentConfigBody := "" + + //测点编码;测点名称;系统编码;露天矿山编码;边坡编号;传感器类型;测点数值类型;测点数值单位;埋深;一级阈值;二级阈值;三级阈值;四级阈值;测点安装位置;位置X;位置Y;位置Z;安装日期;生产厂家;量程;在用状态;故障状态;数据时间 + "^13080403000103200001;YL02;01;130804030001;0101;03;;mm;;250;100;50;25;四方洞;117.67197649;40.54578003;532;2022-12-01;武汉新普惠;4;1;0;2022-12-01 10:00:00" + + "^13080403000102100011;WY02-01-P04;01;130804030001;0101;02;;mm;;;;;;四方洞;117.66758607;40.54634132;532;2022-12-01;司南导航;15;1;0;2022-12-01 10:00:00" + + "^13080403000102100012;WY03-01-P05;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67151104;40.54658722;532;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" + + "^13080403000102100021;WY04-01-P06;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67730148;40.54652232;540;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" + + "^13080403000102100022;WY05-03-P07;01;130804030001;0101;02;;mm;;;;;;四方洞;117.67646438;40.54578003;560;2019-10-01;司南导航;15;1;0;2022-12-01 10:00:00" + + "^]]]" + contentConfig = contentConfigHead + contentConfigBody } fileName := fmt.Sprintf("%s_LTCDJC_%s.txt", the.ConfigInfo.Info["structUploadCode"], time.Now().Format("20060102150405")) filePath := path.Join(the.ConfigInfo.IoConfig.Out.File.Directory, fileName)