fix 过滤

This commit is contained in:
2025-03-11 11:04:37 +08:00
parent a2bad07677
commit aab4dea152
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ public class DevicePermissionManuallyService : IDevicePermissionManuallyService
return await _dbContext.Queryable<DevicePermissionManuallyEntity>()
.LeftJoin<DeviceEntity>((x, d) => x.DeviceCode == d.Code)
.LeftJoin<GainfoEntity>((x, d, g) => x.UserNo == g.No)
.WhereIF(requestDto.Search.IsPresent(), (x, d, g) => g.Code == requestDto.Search || g.Name.Contains(requestDto.Search))
.Select((x, d, g) => new DevicePermissionManuallyResponse
{
Id = x.Id,