大数据段优化
parent
f310a63c7d
commit
e6dee5bf27
|
@ -63,7 +63,7 @@ public class Cn2011 implements Reply {
|
|||
realTimeData.setF_turbidity(v);
|
||||
else if(ckey.equals("DataTime"))
|
||||
realTimeData.setF_time(v);
|
||||
else if(ckey.equals("f_raw_data"))
|
||||
else if(ckey.equals("rawData"))
|
||||
realTimeData.setF_raw_data(v);
|
||||
}
|
||||
BaseResult result=realTimeDataService.insert(realTimeData);
|
||||
|
|
|
@ -80,6 +80,7 @@ public class AnalysisUtil {
|
|||
String[] cpArry = s.split(";");
|
||||
for (String ss:cpArry){
|
||||
//以逗号分隔
|
||||
if(!ss.startsWith("rawData")){
|
||||
String[] c = ss.split(",");
|
||||
for (String s1:c){
|
||||
//此处已经是单值 xxx=xxx
|
||||
|
@ -97,6 +98,11 @@ public class AnalysisUtil {
|
|||
key="QN";
|
||||
resultMap.put(key,value);
|
||||
}
|
||||
}else {
|
||||
String[] split = ss.split("=");
|
||||
resultMap.put(split[0],split[1]);
|
||||
}
|
||||
|
||||
}
|
||||
return resultMap;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue