Support using one CT to monitor a double breaker by only monitoring one pole and doubling its power.

This commit is contained in:
MarkBryanMilligan
2021-02-26 10:56:05 -06:00
parent afe5faf536
commit a75231dc43
5 changed files with 23 additions and 4 deletions

View File

@@ -110,7 +110,7 @@ public class MongoCurrentMonitorDao implements CurrentMonitorDao {
@Override
public List<BreakerPower> getBreakerPowerForAccount(int _accountId) {
return proxy.query(BreakerPower.class, new DaoQuery("account_id", _accountId));
return proxy.query(BreakerPower.class, new DaoQuery("account_id", _accountId).andGt("read_time", DateUtils.minutesFromNow(-1).getTime()));
}
@Override