|
@@ -350,7 +350,7 @@ namespace EVCB_OCPP.WSServer
|
|
|
{
|
|
|
var parameters = new DynamicParameters();
|
|
|
parameters.Add("@MachineId", machineId, DbType.String, ParameterDirection.Input);
|
|
|
- string sql = " SELECT CAST([Latitude] as DECIMAL(5,2)) Lat,CAST([Longitude] as DECIMAL(5, 2)) Long ,SUBSTRING([Address],1,3) as zipcode FROM[StationMachine] left join [dbo].[Station]" +
|
|
|
+ string sql = " SELECT Name,CAST([Latitude] as DECIMAL(5,2)) Lat,CAST([Longitude] as DECIMAL(5, 2)) Long ,SUBSTRING([Address],1,3) as zipcode FROM[StationMachine] left join [dbo].[Station]" +
|
|
|
" on[StationMachine].StationId = Station.[Id] where StationMachine.MachineId=@MachineId; ";
|
|
|
|
|
|
var result = await conn.QueryAsync<TCCStationInfoDto>(sql, parameters);
|
|
@@ -763,7 +763,7 @@ namespace EVCB_OCPP.WSServer
|
|
|
if (stationInfo != null)
|
|
|
{
|
|
|
session.StationLocation = string.Format("{0},{1}", stationInfo.Lat, stationInfo.Long);
|
|
|
- session.StationName = stationInfo.ZipCode;
|
|
|
+ session.StationName = stationInfo.Name;
|
|
|
}
|
|
|
using (var db = new MainDBContext())
|
|
|
{
|