fix 过滤
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user