optimize
wet 1 year ago
parent 99c46f133e
commit dd13dfc06e

@ -2705,7 +2705,7 @@ namespace Myshipping.Application
#region 入港时间
if (item.Status == "入港")
{
var order = _rep.AsQueryable().Filter(null, true).Where(x => x.Id == item.BookingId).ToList().FirstOrDefault();
var order = _rep.AsQueryable().Filter(null, true).First(x => x.Id == item.BookingId);
var goodconfig = _goodsStatusConfig.AsQueryable().Filter(null, true).Where(x => x.CreatedUserId == order.CreatedUserId && x.SystemCode == "YRG").ToList().FirstOrDefault();
if (goodconfig == null)
{

@ -160,6 +160,7 @@ namespace Myshipping.Application
{
entity.CARRIER = _cache.GetAllCodeCarrier().Result.Where(x => x.Code == entity.CARRIERID).Select(x => x.EdiCode).FirstOrDefault();
}
if (entity.CARGOID != "D")
{

Loading…
Cancel
Save