fix trim空格

This commit is contained in:
2026-01-21 14:58:53 +08:00
parent c7fce25959
commit 0e91f09605
2 changed files with 4 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ public class AppointmentService : IAppointmentService
.WhereIF(search.IsPresent(), x => x.Name.Contains(search) || x.No == search || x.IdNo == search)
.Select(x => new AppointmentDetailResponse
{
Id = x.Id,
No = x.No,
Mst = SqlFunc.Subqueryable<VisitorAppointmentEntity>()
.LeftJoin<GainfoEntity>((p, ga) => p.Code == ga.Code)

View File

@@ -78,6 +78,8 @@ public class AppointmentService : IAppointmentService
foreach (var item in request.Items)
{
item.IdNo = item.IdNo.Trim();
if (item.IsEnterDoorArea && areas.Where(x => x.Type == AppointmentAreaEnumType.Door)
.Select(x => x.CustomCode)
.Contains(item.ApplyDoorArea) == false)