平安校园
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.
 
 
 
 
 
 

94 rivejä
4.2 KiB

  1. namespace SafeCampus.System;
  2. [SugarTable("Attendance", TableDescription = "无感考勤")]
  3. [Tenant(SqlSugarConst.DB_DEFAULT)]
  4. [BatchEdit]
  5. [CodeGen]
  6. //[IgnoreInitTable]
  7. public class Attendance : PrimaryKeyEntity
  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 = "EventId", ColumnDescription = "考勤事件id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  23. public string EventId { get; set; }
  24. /// <summary>
  25. /// 人员跟踪id
  26. /// </summary>
  27. [SugarColumn(ColumnName = "TrackId", ColumnDescription = "人员跟踪id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  28. public string TrackId { get; set; }
  29. /// <summary>
  30. /// 关联底库id 如果为空,表示该人员未匹配到底库
  31. /// </summary>
  32. [SugarColumn(ColumnName = "PersonSetId", ColumnDescription = "关联底库id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  33. public string PersonSetId { get; set; }
  34. /// <summary>
  35. /// 人员id
  36. /// </summary>
  37. [SugarColumn(ColumnName = "PersonId", ColumnDescription = "人员id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  38. public string PersonId { get; set; }
  39. /// <summary>
  40. /// 是否自动上报
  41. /// </summary>
  42. [SugarColumn(ColumnName = "IsAuto", ColumnDescription = "是否自动上报", IsNullable = true)]
  43. public bool IsAuto { get; set; }
  44. /// <summary>
  45. /// 相似度
  46. /// </summary>
  47. [SugarColumn(ColumnName = "Similarity", ColumnDescription = "相似度", IsNullable = true)]
  48. public float Similarity { get; set; }
  49. /// <summary>
  50. /// 摄像头id
  51. /// </summary>
  52. [SugarColumn(ColumnName = "CameraId", ColumnDescription = "摄像头id", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  53. public string CameraId { get; set; }
  54. /// <summary>
  55. /// 人脸质量分,取值[0, 100]
  56. /// </summary>
  57. [SugarColumn(ColumnName = "FaceScore", ColumnDescription = "人脸质量分", IsNullable = true)]
  58. public float FaceScore { get; set; }
  59. /// <summary>
  60. /// 人脸照片url,链接有效期为2小时
  61. /// </summary>
  62. [SugarColumn(ColumnName = "SnapshotUrl", ColumnDescription = "人脸照片url", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  63. public string SnapshotUrl { get; set; }
  64. /// <summary>
  65. /// 人脸照片数据,base64编码(本地对接使用)
  66. /// </summary>
  67. [SugarColumn(ColumnName = "SnapshotData", ColumnDescription = "人脸照片数据", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  68. public string SnapshotData { get; set; }
  69. /// <summary>
  70. /// 事件发生时间
  71. /// </summary>
  72. [SugarColumn(ColumnName = "Tick", ColumnDescription = "事件发生时间", IsNullable = false)]
  73. public DateTime Tick { get; set; }
  74. /// <summary>
  75. /// 目标在快照中的位置
  76. /// </summary>
  77. [SugarColumn(ColumnName = "Rects", ColumnDescription = "目标在快照中的位置", ColumnDataType = StaticConfig.CodeFirst_BigString, IsNullable = true)]
  78. public string Rects { 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 = "CreateTime", ColumnDescription = "创建时间", IsNullable = true)]
  88. public DateTime CreateTime { get; set; }
  89. /// <summary>
  90. ///摄像头信息
  91. /// </summary>
  92. [Navigate(NavigateType.OneToOne, nameof(CameraId), nameof(CameraInfo.SensorId))]
  93. public CameraInfo CameraInfoItem { get; set; }
  94. }