充电订单上传

zw
rszn 5 months ago
parent 46c76f21f5
commit 40da862e6a

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

@ -25,7 +25,7 @@ public class ChargeOrderUploadTask : ITask
try try
{ {
List<ChargeOrder>? chargeOrders = 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"); Log.Info($"there are {chargeOrders?.Count ?? 0} to upload");
if (chargeOrders is { Count: > 0 }) if (chargeOrders is { Count: > 0 })

Loading…
Cancel
Save