fix list字段处理
This commit is contained in:
@@ -54,7 +54,29 @@ public class AppointmentService : IAppointmentService
|
||||
{
|
||||
return await _dbContext.Queryable<VisitorAppointmentDetailEntity>()
|
||||
.Where(x => x.No == no)
|
||||
.Select<AppointmentDetailResponse>()
|
||||
.Select(x => new AppointmentDetailResponse
|
||||
{
|
||||
Id = x.Id,
|
||||
No = x.No,
|
||||
UserNo = x.UserNo,
|
||||
IdType = x.IdType,
|
||||
IdNo = x.IdNo,
|
||||
Name = x.Name,
|
||||
Phone = x.Phone,
|
||||
LicensePlate = x.LicensePlate,
|
||||
IsEnterDoorArea = x.IsEnterDoorArea,
|
||||
ApplyDoorArea = x.ApplyDoorArea,
|
||||
DoorStart = x.DoorStart,
|
||||
DoorEnd = x.DoorEnd,
|
||||
IsEnterWorkplace = false,
|
||||
ApplyWorkplaceAreasString = x.ApplyWorkplaceAreas.ToString(),
|
||||
WorkplaceStart = x.WorkplaceStart,
|
||||
WorkplaceEnd = x.WorkplaceEnd,
|
||||
ImageUrl = x.ImageUrl,
|
||||
Remark = x.Remark,
|
||||
DoorStatus = x.DoorStatus,
|
||||
WorkplaceStatus = VisitorAppointmentDetailStatusEnumType.Wait
|
||||
})
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user