Finance_TimeTask.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace SMP.Tool.TimingTask.Models
  8. {
  9. public class Finance_TimeTask : BaseEntity
  10. {
  11. /// <summary>
  12. /// 任务状态
  13. /// 0:待读取
  14. /// </summary>
  15. public FinanceEnum TaskStatus { get; set; }
  16. public DateTime StartTime { get; set; }
  17. public DateTime EndTime { get; set; }
  18. public int RetryTotal { get; set; }
  19. public int RetryCount { get; set; }
  20. public int OrderCount { get; set; }
  21. public int LadingBillCount { get; set; }
  22. public bool? IsSucceed { get; set; }
  23. public string? ResultMessage { get; set; }
  24. }
  25. public enum FinanceEnum
  26. {
  27. [Description("待读取")]
  28. WaitRead = 0,
  29. [Description("待执行")]
  30. WaitExecute = 10,
  31. [Description("执行中")]
  32. Executing = 20,
  33. [Description("执行完成")]
  34. Succeed = 30,
  35. [Description("执行完成")]
  36. Fail = 40,
  37. }
  38. }