optimize
wet 2 years ago
parent c973bc32ea
commit 53e6406b95

@ -1620,13 +1620,13 @@ namespace Myshipping.Application
return t; return t;
} }
List<long> list = new List<long>(); List<long> tslist = new List<long>();
list.Add((long)input.BookingId); tslist.Add((long)input.BookingId);
var itemcode = _cache.GetAllTenantParam().Result.Where(x => x.ParaCode == "BOOKING_DATA_PUSH" && x.TenantId == UserManager.TENANT_ID).Select(x => x.ItemCode).FirstOrDefault(); var itemcode = _cache.GetAllTenantParam().Result.Where(x => x.ParaCode == "BOOKING_DATA_PUSH" && x.TenantId == UserManager.TENANT_ID).Select(x => x.ItemCode).FirstOrDefault();
if (!string.IsNullOrEmpty(itemcode)) if (!string.IsNullOrEmpty(itemcode))
{ {
if (itemcode == "true") if (itemcode == "true")
await SendBookingOrder(list.ToArray()); await SendBookingOrder(tslist.ToArray());
_logger.LogInformation(input.BookingId + "货物状态推送成功!"); _logger.LogInformation(input.BookingId + "货物状态推送成功!");
} }
return null; return null;

Loading…
Cancel
Save