diff --git a/Entity/DbModel/Station/SwapOrder.cs b/Entity/DbModel/Station/SwapOrder.cs index 57aea8d..303b422 100644 --- a/Entity/DbModel/Station/SwapOrder.cs +++ b/Entity/DbModel/Station/SwapOrder.cs @@ -148,11 +148,11 @@ namespace Entity.DbModel.Station [SugarColumn(ColumnName = "cloud_sn")] public string? CloudSn { get; set; } /// - /// Desc:换电类型:;0手动换电;1自动换电 + /// Desc:换电类型:;1自动换电;2手动换电 /// Default:0 /// Nullable:True /// - [SugarColumn(ColumnName = "swap_type")] - public int? SwapModel { get; set; } + [SugarColumn(ColumnName = "swap_way")] + public int? SwapWay { get; set; } } } \ No newline at end of file diff --git a/Service/Execute/Mgr/CommonMgr.cs b/Service/Execute/Mgr/CommonMgr.cs index 7143866..139d8e5 100644 --- a/Service/Execute/Mgr/CommonMgr.cs +++ b/Service/Execute/Mgr/CommonMgr.cs @@ -47,6 +47,7 @@ public class CommonMgr /// public SwapOrder SaveOrder(SwapOrder swapOrder) { + swapOrder.SwapWay = (int)StationConstant.StationWay.Auto; swapOrder.CloudReportStatus = 0; _swapOrderRepository.Insert(swapOrder); return swapOrder; diff --git a/WebStarter/WebStarter.csproj b/WebStarter/WebStarter.csproj index 1330ba7..8d5c4fb 100644 --- a/WebStarter/WebStarter.csproj +++ b/WebStarter/WebStarter.csproj @@ -55,9 +55,9 @@ - + Always - +