|
@@ -311,6 +311,11 @@ private void dealData(String msgStr){
|
|
|
String pressure5Code= "pressure_qdcc";
|
|
|
String pressure6Code = "pressure_qcqgw";
|
|
|
String pressure7Code = "pressure_qjxyq";
|
|
|
+ String pressure8Code = "pressure_hg2";
|
|
|
+ String concentration1 = "concentration1";
|
|
|
+ String concentration2 = "concentration2";
|
|
|
+ String concentration3 = "concentration3";
|
|
|
+
|
|
|
|
|
|
List<Scada> list = new ArrayList<>();
|
|
|
Long maxId = scadaMapper.getPlanTempMaxId(tableName);
|
|
@@ -376,6 +381,45 @@ private void dealData(String msgStr){
|
|
|
pressure7.setUpdateTime(new Date());
|
|
|
pressure7.setFiledName(pressure7Code.toUpperCase());
|
|
|
list.add(pressure7);
|
|
|
+
|
|
|
+ Scada pressure8 = new Scada();
|
|
|
+ pressure8.setId(maxId++);
|
|
|
+ pressure8.setCode(pressure8Code.concat("_").concat(dutId));
|
|
|
+ pressure8.setScadaTime(scadaDataInfo.getCollect_time());
|
|
|
+ pressure8.setValue(scadaDataInfo.getPressure8());
|
|
|
+ pressure8.setUpdateTime(new Date());
|
|
|
+ pressure8.setFiledName(pressure8Code.toUpperCase());
|
|
|
+ list.add(pressure8);
|
|
|
+
|
|
|
+ Scada concentration_1 = new Scada();
|
|
|
+ concentration_1.setId(maxId++);
|
|
|
+ concentration_1.setCode(concentration1.concat("_").concat(dutId));
|
|
|
+ concentration_1.setScadaTime(scadaDataInfo.getCollect_time());
|
|
|
+ concentration_1.setValue(scadaDataInfo.getConcentration1());
|
|
|
+ concentration_1.setUpdateTime(new Date());
|
|
|
+ concentration_1.setFiledName(concentration1.toUpperCase());
|
|
|
+ list.add(concentration_1);
|
|
|
+
|
|
|
+ Scada concentration_2 = new Scada();
|
|
|
+ concentration_2.setId(maxId++);
|
|
|
+ concentration_2.setCode(concentration2.concat("_").concat(dutId));
|
|
|
+ concentration_2.setScadaTime(scadaDataInfo.getCollect_time());
|
|
|
+ concentration_2.setValue(scadaDataInfo.getConcentration2());
|
|
|
+ concentration_2.setUpdateTime(new Date());
|
|
|
+ concentration_2.setFiledName(concentration2.toUpperCase());
|
|
|
+ list.add(concentration_2);
|
|
|
+
|
|
|
+
|
|
|
+ Scada concentration_3 = new Scada();
|
|
|
+ concentration_3.setId(maxId++);
|
|
|
+ concentration_3.setCode(concentration3.concat("_").concat(dutId));
|
|
|
+ concentration_3.setScadaTime(scadaDataInfo.getCollect_time());
|
|
|
+ concentration_3.setValue(scadaDataInfo.getConcentration3());
|
|
|
+ concentration_3.setUpdateTime(new Date());
|
|
|
+ concentration_3.setFiledName(concentration3.toUpperCase());
|
|
|
+ list.add(concentration_3);
|
|
|
+
|
|
|
+
|
|
|
scadaMapper.insertMouth(list, tableName);
|
|
|
saveDataReal(list,dutId);
|
|
|
saveHistoryAlertData(list,dutId);
|