充电订单设置cmd_status=1时才上传

master
CZ 5 months ago
parent 8d0bd3c3c2
commit e71cb4e058

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

Loading…
Cancel
Save