|
@@ -245,7 +245,8 @@ namespace EVCB_OCPP.TaskScheduler.Jobs
|
|
|
{
|
|
|
dbConn.Open();
|
|
|
string sqlstring = "SELECT m.CustomerId,m.Id,m.ChargeBoxId,m.Online,m.HeartbeatUpdatedOn,MachineConfigurations.ConfigureSetting HeartbeatInterval"
|
|
|
- + " FROM [dbo].[Machine] m,[dbo].[MachineConfigurations] where MachineConfigurations.ConfigureName = 'HeartbeatInterval' and m.ChargeBoxId = MachineConfigurations.ChargeBoxId";
|
|
|
+ + " FROM [dbo].[Machine] m left join [dbo].[MachineConfigurations] MachineConfigurations on m.ChargeBoxId = MachineConfigurations.ChargeBoxId"
|
|
|
+ + " where MachineConfigurations.ConfigureName = 'HeartbeatInterval' and MachineConfigurations.ConfigureSetting!=''";
|
|
|
result = dbConn.Query<EVSECurrentStatus>(sqlstring).ToList();
|
|
|
}
|
|
|
|