fix AsAppointment
This commit is contained in:
@@ -110,7 +110,7 @@ public class AppointmentService : IAppointmentService
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
throw new UserFriendlyException("凭证有误");
|
||||
//ignore
|
||||
}
|
||||
|
||||
var now = DateTime.Now;
|
||||
@@ -118,7 +118,10 @@ public class AppointmentService : IAppointmentService
|
||||
.LeftJoin<GainfoEntity>((x, ga) => ga.IdNo == idNo)
|
||||
.Where((x, ga) => ga.IdNo == idNo)
|
||||
.Where(x => (x.IsEnterDoorArea && SqlFunc.DateIsSame(x.DoorStart, now)) || (x.IsEnterWorkplace && SqlFunc.DateIsSame(x.WorkplaceStart, now)))
|
||||
.Select<AppointmentDetailResponse>()
|
||||
.Select(x => new AppointmentDetailResponse
|
||||
{
|
||||
Mst = SqlFunc.Subqueryable<VisitorAppointmentDetailEntity>().Where(p => p.No == x.No).First<AppointmentPageResponse>()
|
||||
}, true)
|
||||
.SingleAsync();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user