namespace SafeCampus.Application.Services.Business.ClassRoomCallTaskService; public class ClassRoomCallTaskDto { /// /// ID /// public long Id { get; set; } /// /// 摄像头id /// public string CameraId { get; set; } /// /// 摄像头名称 /// public string CameraName { get; set; } /// /// 摄像头所属分组名称 /// public string CameraGroup { get; set; } /// /// 点名任务id /// public string TaskId { get; set; } /// /// 点名持续时间,单位为分钟,取值[1, 100] /// public int ContinueTime { get; set; } /// /// 人员底库id /// public string PersonSetId { get; set; } /// /// 匹配相似度阈值(如果没传,系统默认用0.5) /// public float Similarity { get; set; } /// /// 创建时间 /// public DateTime CreateTime { get; set; } /// /// 结束时间 /// public DateTime EndTime { get; set; } /// /// 班级名称 /// public string PersonSetName { get; set; } /// /// 院系名称 /// public string DepName { get; set; } /// /// 专业名称 /// public string MajorName { get; set; } } public class ClassRoomCallTaskDtoMapper : IRegister { public void Register(TypeAdapterConfig config) { config.ForType() //.Map(dest => dest.CameraName, src => src.CameraId.GetDescriptionByEnum()); .Map(x=>x.PersonSetName,x=>x.PersonSetInfoItem.PersonSetName) .Map(x=>x.MajorName,x=>x.PersonSetInfoItem.MajorInfoItem.Name) .Map(x=>x.DepName,x=>x.PersonSetInfoItem.MajorInfoItem.DepartmentInfoItem.Name) .Map(dest => dest.CameraName, src => src.CameraInfoItem.SensorName) .Map(dest => dest.CameraGroup, src => src.CameraInfoItem.CameraGroupItem.Name); } }