Sfoglia il codice sorgente

event维护时间电量计算问题

xieshengjie 2 anni fa
parent
commit
77c397550c

+ 1 - 1
realtime/generation-service/src/main/java/com/gyee/generation/service/FiveLossesService.java

@@ -153,7 +153,7 @@ public class FiveLossesService {
                         Date starttime = DateUtils.parseLongToDate(sectionData.getPointTime()*1000);
                         shutdownevent.setStarttime(starttime);
                         Date stoptime = shutdownevent.getStoptime();
-                        double hour = DateUtils.hoursDiff1(stoptime, starttime);
+                        double hour = DateUtils.hoursDiff2(stoptime, starttime);
                         shutdownevent.setStophours(hour);
 
                         List<PointData> ztmxDatasSnap = null;