fix 支持供应商搜索

This commit is contained in:
2025-06-09 10:13:03 +08:00
parent bf64366089
commit e69dca6180
2 changed files with 3 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ public class DeviceService : IDeviceService
.Where((d, dt) => d.Type == request.Type)
.WhereIF(request.Enable.HasValue, (d, dt) => d.Enable == request.Enable)
.WhereIF(request.Search.IsPresent(), d => d.UniqueNo == request.Search || d.DeployPlace.Contains(request.Search))
.WhereIF(request.Supplier.IsPresent(), d => d.Supplier.Contains(request.Search))
.Select((d, dt, dr, bp) => new DevicePageResponse
{
FuncsStr = d.Funcs.ToString(),