|
|
|
@ -55,11 +55,14 @@ namespace Myshipping.Core.Service
|
|
|
|
|
public async Task<dynamic> GetListPage([FromQuery] QueryDjyVesselInfoInput input)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return await _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID).
|
|
|
|
|
WhereIF(!string.IsNullOrWhiteSpace(input.KeyWord), x => x.Vessel.Contains(input.KeyWord)
|
|
|
|
|
|| x.CARRIER.Contains(input.KeyWord) || x.Voyno.Contains(input.KeyWord) || x.PortLoading.Contains(input.KeyWord) || x.PortTransit.Contains(input.KeyWord) ||
|
|
|
|
|
x.PortDischarge.Contains(input.KeyWord) || x.VoynoInside.Contains(input.KeyWord)
|
|
|
|
|
).ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
|
|
return await _rep.AsQueryable().Filter(null, true).Where(x => x.TenantId == UserManager.TENANT_ID)
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.CARRIER), x => x.CARRIER.Contains(input.CARRIER))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Vessel), x => x.Vessel.Contains(input.Vessel))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.VoynoInside), x => x.VoynoInside.Contains(input.VoynoInside))
|
|
|
|
|
.WhereIF(!string.IsNullOrWhiteSpace(input.Voyno), x => x.Voyno.Contains(input.Voyno))
|
|
|
|
|
.WhereIF(input.StartETD != null, x => x.ETD >= input.StartETD)
|
|
|
|
|
.WhereIF(input.EndETD != null, x => x.ETD <= input.EndETD)
|
|
|
|
|
.ToPagedListAsync(input.PageNo, input.PageSize);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|