|
|
@@ -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();
|