平安校园
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

WarnInfo.cs 7.7 KiB

hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
hace 3 meses
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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. [SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
  43. public DateTime Tick { get; set; }
  44. /// <summary>
  45. /// 摄像头快照,原链接有效期为2小时,获取到数据后下载到本地
  46. /// </summary>
  47. [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "摄像头快照", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  48. public string SnapshotUrl { get; set; }
  49. /// <summary>
  50. /// 预警关联视频(有些报警有,有些没有)
  51. /// </summary>
  52. [SugarColumn(ColumnName = "VideoUrl", ColumnDescription = "预警关联视频", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  53. public string VideoUrl { get; set; }
  54. /// <summary>
  55. /// 目标在快照中的位置
  56. /// </summary>
  57. [SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  58. public string Rects { get; set; }
  59. ///// <summary>
  60. ///// 人员名称
  61. ///// </summary>
  62. //[SugarColumn(ColumnName = "PersonName", ColumnDescription = "人员名称", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  63. //public string PersonName { get; set; }
  64. /// <summary>
  65. /// 性别
  66. /// </summary>
  67. [SugarColumn(ColumnName = "Gender", ColumnDescription = "性别", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  68. public string Gender { get; set; }
  69. /// <summary>
  70. /// 班级id
  71. /// </summary>
  72. [SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "班级id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  73. public string PersonSetId { get; set; }
  74. /// <summary>
  75. /// 人员id
  76. /// </summary>
  77. [SugarColumn(ColumnName = "PersonId", ColumnDescription = "人员id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  78. public string PersonId { get; set; }
  79. /// <summary>
  80. /// 人脸相似度
  81. /// </summary>
  82. [SugarColumn(ColumnName = "FaceSimilarity", ColumnDescription = "人脸相似度", IsNullable = true)]
  83. public float? FaceSimilarity { get; set; }
  84. /// <summary>
  85. /// 人员跟踪id,同一个id表示是同一个人
  86. /// </summary>
  87. [SugarColumn(ColumnName = "TrackId", ColumnDescription = "人员跟踪id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  88. public string TrackId { get; set; }
  89. /// <summary>
  90. /// 服装库id
  91. /// </summary>
  92. [SugarColumn(ColumnName = "ClothsSetId", ColumnDescription = "服装库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  93. public string ClothsSetId { get; set; }
  94. /// <summary>
  95. /// 服装id
  96. /// </summary>
  97. [SugarColumn(ColumnName = "ClothId", ColumnDescription = "服装id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  98. public string ClothId { get; set; }
  99. /// <summary>
  100. /// 服装相似度
  101. /// </summary>
  102. [SugarColumn(ColumnName = "ClothSimilarity", ColumnDescription = "服装相似度", IsNullable = true)]
  103. public float? ClothSimilarity { get; set; }
  104. /// <summary>
  105. /// 奔跑速度
  106. /// </summary>
  107. [SugarColumn(ColumnName = "SpeedLevel", ColumnDescription = "奔跑速度", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  108. public string SpeedLevel { get; set; }
  109. /// <summary>
  110. /// 奔跑时周围人数
  111. /// </summary>
  112. [SugarColumn(ColumnName = "MaxAroundTracks", ColumnDescription = "奔跑时周围人数", IsNullable = true)]
  113. public int? MaxAroundTracks { get; set; }
  114. /// <summary>
  115. /// 人群数量
  116. /// </summary>
  117. [SugarColumn(ColumnName = "Count", ColumnDescription = "人群数量", IsNullable = true)]
  118. public int? Count { get; set; }
  119. /// <summary>
  120. /// 持续时长
  121. /// </summary>
  122. [SugarColumn(ColumnName = "Duration", ColumnDescription = "持续时长", IsNullable = true)]
  123. public int? Duration { get; set; }
  124. /// <summary>
  125. /// 人员类型
  126. /// </summary>
  127. [SugarColumn(ColumnName = "PersonType", ColumnDescription = "人员类型", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  128. public string PersonType { get; set; }
  129. /// <summary>
  130. ///场景标签
  131. /// </summary>
  132. [SugarColumn(ColumnName = "Tags", ColumnDescription = "场景标签", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  133. public string Tags { get; set; }
  134. /// <summary>
  135. /// 额外数据,每个预警类型不同
  136. /// </summary>
  137. [SugarColumn(ColumnName = "Extend",ColumnDescription = "额外数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  138. public string Extend { get; set; }
  139. /// <summary>
  140. /// 预警处理状态
  141. /// </summary>
  142. [SugarColumn(ColumnName = "WarnHand", ColumnDescription = "预警处理状态", IsNullable = true)]
  143. public int WarnHand { get; set; }
  144. /// <summary>
  145. /// 处理意见
  146. /// </summary>
  147. [SugarColumn(ColumnName = "Remark", ColumnDescription = "处理意见", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  148. public string Remark { get; set; }
  149. /// <summary>
  150. /// 处理时间
  151. /// </summary>
  152. [SugarColumn(ColumnName = "HandTime", ColumnDescription = "处理时间", IsNullable = true)]
  153. public DateTime? HandTime { get; set; }
  154. /// <summary>
  155. ///摄像头信息
  156. /// </summary>
  157. [Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
  158. public CameraInfo CameraInfoItem { get; set; }
  159. /// <summary>
  160. /// 班级信息
  161. /// </summary>
  162. [Navigate(NavigateType.OneToOne,nameof(PersonSetId),nameof(PersonSetInfo.PersonSetId))]
  163. public PersonSetInfo PersonSetInfoItem { get; set; }
  164. /// <summary>
  165. /// 人员信息
  166. /// </summary>
  167. [Navigate(NavigateType.OneToOne,nameof(PersonId),nameof(PersonInfo.PersonId))]
  168. public PersonInfo PersonInfoItem { get; set; }
  169. }