|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- namespace SafeCampus.Application.Services.Business.AttendanceService;
-
- public class AttendanceList
- {
- /// <summary>
- /// ID
- /// </summary>
- public long Id { get; set; }
- /// <summary>
- /// 租户id
- /// </summary>
- public string TenantCode { get; set; }
- /// <summary>
- /// 门店id
- /// </summary>
- public string PoiId { get; set; }
- /// <summary>
- /// 考勤事件id
- /// </summary>
- public string EventId { get; set; }
- /// <summary>
- /// 人员跟踪id
- /// </summary>
- public string TrackId { get; set; }
- /// <summary>
- /// 关联底库id 如果为空,表示该人员未匹配到底库
- /// </summary>
- public string PersonSetId { get; set; }
- /// <summary>
- /// 人员id
- /// </summary>
- public string PersonId { get; set; }
- /// <summary>
- /// 人员名称
- /// </summary>
- public string PersonName { get; set; }
- /// <summary>
- /// 寝室名称
- /// </summary>
- public string DormitName { get; set; }
- //人员性别
- public string Gender { get; set; }
- /// <summary>
- /// 班级名称
- /// </summary>
- public string PersonSetName { get; set; }
- /// <summary>
- /// 是否自动上报
- /// </summary>
- public bool IsAuto { get; set; }
- /// <summary>
- /// 相似度
- /// </summary>
- public float Similarity { get; set; }
- /// <summary>
- /// 摄像头id
- /// </summary>
- public string CameraId { get; set; }
- /// <summary>
- /// 人脸质量分,取值[0, 100]
- /// </summary>
- public float FaceScore { get; set; }
- /// <summary>
- /// 人脸照片url,链接有效期为2小时
- /// </summary>
- public string SnapshotUrl { get; set; }
- /// <summary>
- /// 人脸照片数据,base64编码(本地对接使用)
- /// </summary>
- public string SnapshotData { get; set; }
- /// <summary>
- /// 事件发生时间
- /// </summary>
- public DateTime Tick { get; set; }
- /// <summary>
- /// 目标在快照中的位置
- /// </summary>
- public string Rects { get; set; }
- /// <summary>
- /// 人员扩展信息
- /// </summary>
- public string Extend { get; set; }
- /// <summary>
- /// 创建时间
- /// </summary>
- public DateTime CreateTime { get; set; }
- }
-
- public class AttendanceListMapper : IRegister
- {
- public void Register(TypeAdapterConfig config)
- {
- config.ForType<Attendance, AttendanceList>()
- .Map(x => x.PersonName, x => !string.IsNullOrEmpty(x.PersonId) ? x.PersonInfoItem.Name : "")
- .Map(x => x.PersonSetName, x => !string.IsNullOrEmpty(x.PersonId) ? x.PersonInfoItem.PersonSetInfoItem.PersonSetName : "")
- .Map(x => x.DormitName, x => !string.IsNullOrEmpty(x.PersonId) ? (x.PersonInfoItem.DormitoryId.HasValue? x.PersonInfoItem.DormitoryInfoItem.Name : "") : "")
- .Map(x => x.Gender, x => !string.IsNullOrEmpty(x.PersonId) ? x.PersonInfoItem.Gender : "");
- }
- }
|