bugfix: 计划id过滤实现

main
陈伟 2025-09-29 09:20:30 +08:00
parent 509d1cc692
commit 42137a7a34
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ namespace OpenAuth.App.ServiceApp
Console.WriteLine(startTime.ToString());
var list = await db.LasaMediaFile.AsQueryable()
.LeftJoin<LasaTask>((x, b) => x.FlightId == b.FlightId)
.WhereIF(!string.IsNullOrEmpty(flightId), (x, b) => x.FlightId == flightId)
.WhereIF(!string.IsNullOrEmpty(device), (x, b) => x.DroneModelKey == device)
.WhereIF(!string.IsNullOrEmpty(picname), (x, b) => x.Name.Contains(picname))
.WhereIF(!string.IsNullOrEmpty(airId), (x, b) => b.AirLineId == airId)