充电订单上传

master
rszn 5 months ago
parent 46c76f21f5
commit 40da862e6a

@ -16,7 +16,7 @@ namespace Entity.DbModel.Station
/// Desc:id
/// Default:
/// Nullable:False
/// </summary>
/// </summary>
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
public int Id { get; set; }
@ -266,7 +266,7 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "cloud_report_status")]
public int? CloudReportStatus { get; set; }
/// <summary>
/// Desc:云平台订单编号
/// Default:
@ -283,4 +283,4 @@ namespace Entity.DbModel.Station
[SugarColumn(ColumnName = "can_upload")]
public int? CanUpload { get; set; }
}
}
}

@ -25,7 +25,7 @@ public class ChargeOrderUploadTask : ITask
try
{
List<ChargeOrder>? chargeOrders =
_chargeOrderRepository.QueryListByClause(it => it.CloudReportStatus == 0 && it.CanUpload == 1);
_chargeOrderRepository.QueryListByClause(it => Convert.ToInt32(it.CloudReportStatus) == 0 && Convert.ToInt32(it.CanUpload) == 1);
Log.Info($"there are {chargeOrders?.Count ?? 0} to upload");
if (chargeOrders is { Count: > 0 })

Loading…
Cancel
Save