swaporder 添加swapway

master
lxw 6 months ago
parent 23ec8d5813
commit 1397937c99

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

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

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

Loading…
Cancel
Save