optimize
wet 1 year ago
parent 83790a14af
commit bc55943f8f

@ -8571,5 +8571,24 @@ namespace Myshipping.Application
await SendBookingOrder(orderlist.ToArray());
}
/// <summary>
/// /批量ID同步东胜
/// </summary>
/// <param name="ID"></param>
/// <returns></returns>
[HttpPost("/BookingOrder/TestSendDSID")]
public async Task TestSendDSID(string Id)
{
var orderlist = _rep.AsQueryable().Filter(null, true).
Where(x => x.TenantId == UserManager.TENANT_ID).
WhereIF(!string.IsNullOrWhiteSpace(Id) && !Id.Contains(','), u => u.Id.ToString()==Id).
WhereIF(!string.IsNullOrWhiteSpace(Id) && Id.Contains(','), u => Id.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Contains(u.Id.ToString())).
Select(x => x.Id).ToList();
_logger.LogInformation("批量提单号同步东胜:" + orderlist.ToString());
await SendBookingOrder(orderlist.ToArray());
}
}
}

Loading…
Cancel
Save