代码优化
This commit is contained in:
@@ -274,7 +274,16 @@ public class RtServiceImpl implements IRtService {
|
||||
try {
|
||||
Field field = clazz.getDeclaredField(fieldName);
|
||||
field.setAccessible(true);
|
||||
field.set(harmRealDataSet,FloatUtils.get2Float(item.getData()));
|
||||
if (item.getHarmName().contains("Pq_HarmI_")) {
|
||||
if ("Secondary".equals(dataLevel)) {
|
||||
double data = item.getData() * ct;
|
||||
field.set(harmRealDataSet,FloatUtils.get2Float((float)data));
|
||||
} else {
|
||||
field.set(harmRealDataSet,FloatUtils.get2Float(item.getData()));
|
||||
}
|
||||
} else {
|
||||
field.set(harmRealDataSet,FloatUtils.get2Float(item.getData()));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user