dataList = new ArrayList<>(records.size());
+
+ for(GnssCalcData locationRecord: records) {
+ if(!locationRecord.getEnabled()) continue;
+ KingMaData data = new KingMaData();
+ data.setDataTime(locationRecord.getCreatetime().toString());
+ data.setProjectId(projectId);
+ data.setDeviceId(locationRecord.getDeviceid());
+ data.setFlag(1);
+ data.setPhys(new KingMaData.Phys(locationRecord.getRb562e(),locationRecord.getRb562n(),locationRecord.getRb562d()));
+ dataList.add(data);
+ sendNum++;
+ }
+ String json = GsonUtil.toJson(dataList);
+ String result = HttpUtils.postJson(data_host,header,json);
+ logger.info("project " + projectId + ": push calculation result to Kingma");
+ logger.info(json);
+ logger.info("result: "+result);
+ return sendNum;
+ }
+
+}
diff --git a/sec-beidou-fwd/src/main/resources/application.properties b/sec-beidou-fwd/src/main/resources/application.properties
index 3549c813..c5596a33 100644
--- a/sec-beidou-fwd/src/main/resources/application.properties
+++ b/sec-beidou-fwd/src/main/resources/application.properties
@@ -24,4 +24,9 @@ mybatis-plus.configuration.map-underscore-to-camel-case=false
#xfz.server.host = 171.106.48.63
#xfz.server.port = 52000
xfz.server.host = 115.236.153.174
-xfz.server.port = 31035
\ No newline at end of file
+xfz.server.port = 31035
+
+kingma.server.login_user = ceshi
+kingma.server.login_pwd = ceshi!123
+kingma.server.login_host = https://www.everiaction.com/IOT-ADAPTER-CUSTOM/auth/anon/login
+kingma.server.data_host = https://www.everiaction.com/IOT-DATA-GATHER/receive/data/formula
\ No newline at end of file
diff --git a/sec-beidou/src/main/resources/templates/page/fwd_records.html b/sec-beidou/src/main/resources/templates/page/fwd_records.html
index c6d8dc45..862a69e3 100644
--- a/sec-beidou/src/main/resources/templates/page/fwd_records.html
+++ b/sec-beidou/src/main/resources/templates/page/fwd_records.html
@@ -36,9 +36,9 @@
url: '/fwd/records',
toolbar: '#toolbarTable',
cols: [[
- {field: 'deviceid', title: '设备号', sort: true},
- {field: 'project_id', title: '项目号'},
+ {field: 'project_id', title: '项目号', sort: true},
{field: 'devicenum', title: '推送设备数'},
+ {field: 'deviceid', title: '设备号'},
{field: 'starttime', title: '起始时间', templet: "{{layui.util.toDateString(d.starttime, 'yyyy-MM-dd HH:mm:ss')}}
"},
{field: 'endtime', title: '结束时间', templet: "{{layui.util.toDateString(d.endtime, 'yyyy-MM-dd HH:mm:ss')}}
"},
{field: 'fwd_group_id', title: '推送组'},