fix trim空格
This commit is contained in:
@@ -262,7 +262,8 @@ public class AppointmentService : IAppointmentService
|
|||||||
.WhereIF(!status.HasValue, x => x.DoorStart >= start && x.DoorEnd <= end)
|
.WhereIF(!status.HasValue, x => x.DoorStart >= start && x.DoorEnd <= end)
|
||||||
.WhereIF(search.IsPresent(), x => x.Name.Contains(search) || x.No == search || x.IdNo == search)
|
.WhereIF(search.IsPresent(), x => x.Name.Contains(search) || x.No == search || x.IdNo == search)
|
||||||
.Select(x => new AppointmentDetailResponse
|
.Select(x => new AppointmentDetailResponse
|
||||||
{
|
{
|
||||||
|
Id = x.Id,
|
||||||
No = x.No,
|
No = x.No,
|
||||||
Mst = SqlFunc.Subqueryable<VisitorAppointmentEntity>()
|
Mst = SqlFunc.Subqueryable<VisitorAppointmentEntity>()
|
||||||
.LeftJoin<GainfoEntity>((p, ga) => p.Code == ga.Code)
|
.LeftJoin<GainfoEntity>((p, ga) => p.Code == ga.Code)
|
||||||
|
|||||||
@@ -78,6 +78,8 @@ public class AppointmentService : IAppointmentService
|
|||||||
|
|
||||||
foreach (var item in request.Items)
|
foreach (var item in request.Items)
|
||||||
{
|
{
|
||||||
|
item.IdNo = item.IdNo.Trim();
|
||||||
|
|
||||||
if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
|
if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
|
||||||
.Select(x => x.CustomCode)
|
.Select(x => x.CustomCode)
|
||||||
.Contains(item.ApplyDoorArea) == false)
|
.Contains(item.ApplyDoorArea) == false)
|
||||||
|
|||||||
Reference in New Issue
Block a user