|
@@ -42,8 +42,10 @@ public class SmartChargingJob : IJob
|
|
|
List<StationInfoDto> stations = null;
|
|
|
using (SqlConnection conn = await webDbConnectionFactory.CreateAsync())
|
|
|
{
|
|
|
- string strSql = "SELECT[Id],[LBMode],[LBCurrent] as Availability FROM[StandardOCPP_Web].[dbo].[Station]" +
|
|
|
- "where LBMode = 1; ";
|
|
|
+ string strSql = """
|
|
|
+ SELECT [Id],[LBMode],[LBCurrent] as Availability FROM [dbo].[Station]
|
|
|
+ WHERE LBMode = 1;
|
|
|
+ """;
|
|
|
var result = await conn.QueryAsync<StationInfoDto>(strSql);
|
|
|
stations = result.ToList();
|
|
|
}
|