平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
преди 4 месеца
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. namespace SafeCampus.System;
  2. [SugarTable("WarnInfo", TableDescription = "预警信息表")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. [IgnoreInitTable]
  7. public class WarnInfo : BaseEntity
  8. {
  9. /// <summary>
  10. /// 租户id
  11. /// </summary>
  12. [SugarColumn(ColumnName = "TenantCode", ColumnDescription = "租户id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  13. public string TenantCode { get; set; }
  14. /// <summary>
  15. /// 门店id
  16. /// </summary>
  17. [SugarColumn(ColumnName = "PoiId", ColumnDescription = "门店id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  18. public string PoiId { get; set; }
  19. /// <summary>
  20. /// 预警id
  21. /// </summary>
  22. [SugarColumn(ColumnName = "AlarmId", ColumnDescription = "预警id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  23. public string AlarmId { get; set; }
  24. /// <summary>
  25. /// 预警类型
  26. /// </summary>
  27. [SugarColumn(ColumnName = "AlarmType", ColumnDescription = "预警类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  28. public string AlarmType { get; set; }
  29. /// <summary>
  30. /// 预警类型说明
  31. /// </summary>
  32. [SugarColumn(ColumnName = "AlarmTypeDesc", ColumnDescription = "预警类型说明", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  33. public string AlarmTypeDesc { get; set; }
  34. /// <summary>
  35. /// 摄像头id
  36. /// </summary>
  37. [SugarColumn(ColumnName = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  38. public string CameraId { get; set; }
  39. /// <summary>
  40. ///摄像头信息
  41. /// </summary>
  42. [Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
  43. public CameraInfo CameraInfoItem { get; set; }
  44. /// <summary>
  45. /// 事件发生时间
  46. /// </summary>
  47. [SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
  48. public DateTime Tick { get; set; }
  49. /// <summary>
  50. /// 摄像头快照,原链接有效期为2小时,获取到数据后下载到本地
  51. /// </summary>
  52. [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "摄像头快照", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  53. public string SnapshotUrl { get; set; }
  54. /// <summary>
  55. /// 预警关联视频(有些报警有,有些没有)
  56. /// </summary>
  57. [SugarColumn(ColumnName = "VideoUrl", ColumnDescription = "预警关联视频", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  58. public string VideoUrl { get; set; }
  59. /// <summary>
  60. /// 目标在快照中的位置
  61. /// </summary>
  62. [SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  63. public string Rects { get; set; }
  64. /// <summary>
  65. /// 人员名称
  66. /// </summary>
  67. [SugarColumn(ColumnName = "PersonName", ColumnDescription = "人员名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  68. public string PersonName { get; set; }
  69. /// <summary>
  70. /// 人员类型
  71. /// </summary>
  72. [SugarColumn(ColumnName = "PersonType", ColumnDescription = "人员类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  73. public string PersonType { get; set; }
  74. /// <summary>
  75. ///场景标签
  76. /// </summary>
  77. [SugarColumn(ColumnName = "Tags", ColumnDescription = "场景标签", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  78. public string Tags { get; set; }
  79. /// <summary>
  80. /// 额外数据,每个预警类型不同
  81. /// </summary>
  82. [SugarColumn(ColumnName = "Extend",ColumnDescription = "额外数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  83. public string Extend { get; set; }
  84. /// <summary>
  85. /// 预警处理状态
  86. /// </summary>
  87. [SugarColumn(ColumnName = "WarnHand", ColumnDescription = "预警处理状态", IsNullable = true)]
  88. public int WarnHand { get; set; }
  89. /// <summary>
  90. /// 处理意见
  91. /// </summary>
  92. [SugarColumn(ColumnName = "Remark", ColumnDescription = "处理意见", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  93. public string Remark { get; set; }
  94. /// <summary>
  95. /// 处理时间
  96. /// </summary>
  97. [SugarColumn(ColumnName = "HandTime", ColumnDescription = "处理时间", IsNullable = true)]
  98. public DateTime? HandTime { get; set; }
  99. }