Browse Source

添加分配筛选

develop
胡超1 2 years ago
parent
commit
2840fcc468
  1. 1
      24Hour/Controllers/Common/LawyerservicesController.cs
  2. 2
      Elight.Logic/Model/App_LawyerServicesInput.cs

1
24Hour/Controllers/Common/LawyerservicesController.cs

@ -94,6 +94,7 @@ namespace _24Hour.Controllers.Common
.WhereIF(Lawyerdata?.objectstr != null, q => q.objectstr.Contains(Lawyerdata.objectstr))
.WhereIF(Lawyerdata?.unitId != null, q => q.unitCode.Contains(Lawyerdata.unitId))
.WhereIF(Lawyerdata?.state != null, q => q.state == Lawyerdata.state)
.WhereIF(Lawyerdata?.IsAssigned != null, q => q.IsAssigned == Lawyerdata.IsAssigned)
.WhereIF(Lawyerdata?.StartTime != null && Lawyerdata.EndTime != null, q => q.receptiontime >= Lawyerdata.StartTime && q.receptiontime < Lawyerdata.EndTime.Value.AddDays(1))
.WhereIF(string.IsNullOrEmpty(Lawyerdata.Id) == false, q => q.Id == Lawyerdata.Id)

2
Elight.Logic/Model/App_LawyerServicesInput.cs

@ -82,5 +82,7 @@ namespace Elight.Logic
/// </summary>
[DataMember]
public int? state { get; set; }
[DataMember]
public bool? IsAssigned { get; set; }
}
}

Loading…
Cancel
Save