|
@@ -56,7 +56,6 @@ public interface IMainDbService
|
|
|
Task UpdateTransactionSOC(int id, string startsoc, string stopsoc);
|
|
|
Task UpdateMachineConnectionType(string chargeBoxId, int v);
|
|
|
Task<string> GetMachineConnectorType(string chargeBoxId, CancellationToken token = default);
|
|
|
- Task SetMachineConnectionType(string chargeBoxId, int connectionType, CancellationToken token = default);
|
|
|
Task UpdateServerMessageUpdateTime(int table_id);
|
|
|
Task AddMachineConfiguration(string chargeBoxId, string key, string value, bool isReadOnly, bool isExist = true);
|
|
|
Task UpdateMachineConfiguration(string chargeBoxId, string item, string empty, bool isReadOnly, bool isExists = true);
|
|
@@ -1430,21 +1429,6 @@ public class MainDbService : IMainDbService
|
|
|
return machine.ConnectorType;
|
|
|
}
|
|
|
|
|
|
- public async Task SetMachineConnectionType(string chargeBoxId, int v, CancellationToken token = default)
|
|
|
- {
|
|
|
- using var db = await contextFactory.CreateDbContextAsync(token);
|
|
|
-
|
|
|
- var machine = await db.Machine.Where(x => x.ChargeBoxId == chargeBoxId).FirstOrDefaultAsync(token);
|
|
|
- if (machine == null)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
- machine.ConnectionType = v;
|
|
|
- return;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
public async Task<Dictionary<string, decimal>> GetTransactionPeriodEnergy(int transactionId)
|
|
|
{
|
|
|
var parms = new DynamicParameters();
|