换电订单,列表和导出优化

master
tq 2 months ago
parent 0dcc62299b
commit 6f3f3da77e

@ -74,5 +74,5 @@ public class SwapLoseOrderDto
public string FailReason { get; set; } public string FailReason { get; set; }
[ExporterHeader(DisplayName = "备注", IsBold = true)] [ExporterHeader(DisplayName = "备注", IsBold = true)]
public decimal? Remark { get; set; } public string? Remark { get; set; }
} }

@ -34,4 +34,8 @@ public class SwapLoseOrderDto2
[ExporterHeader(DisplayName = "Failure Reason", IsBold = true)] [ExporterHeader(DisplayName = "Failure Reason", IsBold = true)]
public string FailReason { get; set; } public string FailReason { get; set; }
[ExporterHeader(DisplayName = "Remark", IsBold = true)]
public string? Remark { get; set; }
} }

@ -75,6 +75,11 @@ public class SwapOrderController : ControllerBase
// 给换电订单赋值车的公司和部门 // 给换电订单赋值车的公司和部门
foreach (var swapOrder in list) foreach (var swapOrder in list)
{ {
if (swapOrder.SwapResult == 2)
{
swapOrder.ManualStep = swapOrder.Remark;
}
var matchingVehicle = vehicleList.FirstOrDefault(v => v.VehicleNo == swapOrder.VehicleNo); var matchingVehicle = vehicleList.FirstOrDefault(v => v.VehicleNo == swapOrder.VehicleNo);
if (matchingVehicle != null) if (matchingVehicle != null)

Loading…
Cancel
Save