Browse Source

bug修复

wangb 2 tuần trước cách đây
mục cha
commit
f254d73641

+ 3 - 2
runeconomy-xk/src/main/java/com/gyee/runeconomy/service/auto/impl/ProEconBrownoutsEvent2ServiceImpl.java

@@ -174,8 +174,9 @@ public class ProEconBrownoutsEvent2ServiceImpl extends ServiceImpl<ProEconBrowno
         DateTime begin = DateUtil.parse(beginDate, "yyyy-MM-dd");
         DateTime end = DateUtil.parse(endDate, "yyyy-MM-dd");
         QueryWrapper<ProEconBrownoutsEvent2> qw = new QueryWrapper<>();
-        qw.lambda().eq(ProEconBrownoutsEvent2::getStopTypeId, "故障")
-                .between(ProEconBrownoutsEvent2::getStartTime, DateUtil.beginOfDay(begin), DateUtil.beginOfDay(end));
+        qw.eq("stop_type_id", "故障")
+                .between("start_time", DateUtil.beginOfDay(begin), DateUtil.beginOfDay(end))
+                .apply("EXTRACT(EPOCH FROM (stop_time - start_time)) / 60 > 10");
         List<ProEconBrownoutsEvent2> brownouts = list(qw);
         List<QxjslDTO> xqList = new ArrayList<>();
         QxjslDTO qx = new QxjslDTO();