|
@@ -160,8 +160,9 @@ public class AnalysisNewService {
|
|
|
analysissubtablebottom.setRecorddate(DateUtils.parseDate(day));
|
|
|
analysissubtablebottom.setStopcode(m.getNow());
|
|
|
analysissubtablebottom.setStopcodemodify(m.getNow());
|
|
|
- analysissubtablebottom.setDayvalue(m.getDayvalue());
|
|
|
- analysissubtablebottom.setDayvaluemodify(m.getDayvalue());
|
|
|
+ double dayvalue = DoubleUtils.GetResult(DoubleUtils.GetResult(m.getNow(),m.getDay(),"-"),meterMap.get(m.getMeterid()).getMagnification(),"*");
|
|
|
+ analysissubtablebottom.setDayvalue(dayvalue);
|
|
|
+ analysissubtablebottom.setDayvaluemodify(dayvalue);
|
|
|
analysissubtablebottomService.save(analysissubtablebottom);
|
|
|
});
|
|
|
}
|
|
@@ -207,8 +208,9 @@ public class AnalysisNewService {
|
|
|
analysissubtablebottom.setRecorddate(DateUtils.parseDate(day));
|
|
|
analysissubtablebottom.setStopcode(m.getNow());
|
|
|
analysissubtablebottom.setStopcodemodify(m.getNow());
|
|
|
- analysissubtablebottom.setDayvalue(m.getDayvalue());
|
|
|
- analysissubtablebottom.setDayvaluemodify(m.getDayvalue());
|
|
|
+ double dayvalue = DoubleUtils.GetResult(DoubleUtils.GetResult(m.getNow(),m.getDay(),"-"),meterMap.get(m.getMeterid()).getMagnification(),"*");
|
|
|
+ analysissubtablebottom.setDayvalue(dayvalue);
|
|
|
+ analysissubtablebottom.setDayvaluemodify(dayvalue);
|
|
|
analysissubtablebottomService.save(analysissubtablebottom);
|
|
|
});
|
|
|
}
|
|
@@ -1024,7 +1026,7 @@ public class AnalysisNewService {
|
|
|
LinkedHashMap addValMap = new LinkedHashMap();
|
|
|
|
|
|
for (String meterid : collect) {
|
|
|
- addMap.put(meterMap.get(meterid).getCode() + "_" + meterMap.get(meterid).getDescription(), Class.forName("java.math.BigDecimal"));
|
|
|
+ addMap.put(meterMap.get(meterid).getCode() + "_" + meterMap.get(meterid).getDescription(), Class.forName("java.lang.Double"));
|
|
|
addValMap.put(meterMap.get(meterid).getCode() + "_" + meterMap.get(meterid).getDescription(), meterMap.get(meterid).getMagnification());
|
|
|
}
|
|
|
Object blo = new ClassUtil().dynamicClass(blObject, addMap, addValMap);
|