diff --git a/Entity/Api/Req/StationConfigReq.cs b/Entity/Api/Req/StationConfigReq.cs
index 5010d72..2cee39d 100644
--- a/Entity/Api/Req/StationConfigReq.cs
+++ b/Entity/Api/Req/StationConfigReq.cs
@@ -36,4 +36,6 @@ public class StationConfigReq
public int SwapFinishChargeTime { get; set; }
public int StationStatus { get; set; }
+
+ public byte ChargeSoc { get; set; }
}
\ No newline at end of file
diff --git a/Entity/Api/Resp/StationConfigResp.cs b/Entity/Api/Resp/StationConfigResp.cs
index 2a2e309..cab2d45 100644
--- a/Entity/Api/Resp/StationConfigResp.cs
+++ b/Entity/Api/Resp/StationConfigResp.cs
@@ -37,4 +37,9 @@ public class StationConfigResp
public int StationStatus { get; set; }
+
+ ///
+ /// 充电soc
+ ///
+ public byte ChargeSoc { get; set; }
}
\ No newline at end of file
diff --git a/WebStarter/Controllers/BasicConfig/BaseConfigController.cs b/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
index 6088662..8ade8b0 100644
--- a/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
+++ b/WebStarter/Controllers/BasicConfig/BaseConfigController.cs
@@ -149,6 +149,7 @@ namespace WebStarter.Controllers.BasicConfig
stationBaseRespResp.AutoChargeEnabled = StaticStationInfo.AutoChargeEnabled;
stationBaseRespResp.Oid = StaticStationInfo.Oid;
stationBaseRespResp.StationStatus = StaticStationInfo.StationStatus;
+ stationBaseRespResp.ChargeSoc = StaticStationInfo.ChargeSoc;
return Result.Success(stationBaseRespResp);
}
@@ -167,6 +168,8 @@ namespace WebStarter.Controllers.BasicConfig
StaticStationInfo.SwapFinishChargeTime = input.SwapFinishChargeTime;
StaticStationInfo.AutoChargeEnabled = input.AutoChargeEnabled;
+
+ StaticStationInfo.ChargeSoc = input.ChargeSoc;
return Result.Success();
}
@@ -193,6 +196,7 @@ namespace WebStarter.Controllers.BasicConfig
Type = item.Type
});
}
+
return Result>.Success(elecPriceModelVersionDetailResps);
}
@@ -255,6 +259,7 @@ namespace WebStarter.Controllers.BasicConfig
{
Result.Fail("参数不能为空");
}
+
List elecPriceModelVersionDetails = new List();
foreach (var item in model)
{
@@ -271,19 +276,21 @@ namespace WebStarter.Controllers.BasicConfig
Type = item.Type
});
}
+
if (!TimeListIfContains(elecPriceModelVersionDetails))
{
return Result.Fail("时间区间重复请检查");
}
- List modelFromDbs = await _elecPriceModelVersionDetailServices.QueryListByClauseAsync(u => u.Version == model[0].Version);
+ List modelFromDbs =
+ await _elecPriceModelVersionDetailServices.QueryListByClauseAsync(u => u.Version == model[0].Version);
if (modelFromDbs != null)
{
await _elecPriceModelVersionDetailServices.DeleteAsync(i => i.Version == model[0].Version);
}
+
await _elecPriceModelVersionDetailServices.InsertAsync(elecPriceModelVersionDetails);
return Result.Success(true);
-
}