swaporder 添加swapway

master
lxw 6 months ago
parent 23ec8d5813
commit 1397937c99

@ -148,11 +148,11 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "cloud_sn")] [SugarColumn(ColumnName = "cloud_sn")]
public string? CloudSn { get; set; } public string? CloudSn { get; set; }
/// <summary> /// <summary>
/// Desc:换电类型:;0手动换电;1自动换电 /// Desc:换电类型:;1自动换电;2手动换电
/// Default:0 /// Default:0
/// Nullable:True /// Nullable:True
/// </summary> /// </summary>
[SugarColumn(ColumnName = "swap_type")] [SugarColumn(ColumnName = "swap_way")]
public int? SwapModel { get; set; } public int? SwapWay { get; set; }
} }
} }

@ -47,6 +47,7 @@ public class CommonMgr
/// <returns></returns> /// <returns></returns>
public SwapOrder SaveOrder(SwapOrder swapOrder) public SwapOrder SaveOrder(SwapOrder swapOrder)
{ {
swapOrder.SwapWay = (int)StationConstant.StationWay.Auto;
swapOrder.CloudReportStatus = 0; swapOrder.CloudReportStatus = 0;
_swapOrderRepository.Insert(swapOrder); _swapOrderRepository.Insert(swapOrder);
return swapOrder; return swapOrder;

@ -55,9 +55,9 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ApplicationDefinition Include="HybirdFrameworkCore.xml"> <Content Include="HybirdFrameworkCore.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</ApplicationDefinition> </Content>
</ItemGroup> </ItemGroup>
</Project> </Project>

Loading…
Cancel
Save