optimize
wet 2 years ago
parent 21a50d734b
commit b3051bb4ff

@ -943,7 +943,7 @@ namespace Myshipping.Application
if (model.BookingEDIExt != null) if (model.BookingEDIExt != null)
{ {
//检索EDI扩展 //检索EDI扩展
var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == main.Id); var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == main.Id).FirstAsync();
if (ediExtEntity == null) if (ediExtEntity == null)
{ {
@ -1244,7 +1244,7 @@ namespace Myshipping.Application
if (item.BookingEDIExt != null) if (item.BookingEDIExt != null)
{ {
//检索EDI扩展 //检索EDI扩展
var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == fdmain.Id); var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == fdmain.Id).FirstAsync();
if (ediExtEntity == null) if (ediExtEntity == null)
{ {
@ -1359,8 +1359,8 @@ namespace Myshipping.Application
if (item.BookingEDIExt != null) if (item.BookingEDIExt != null)
{ {
//检索EDI扩展 //检索EDI扩展
var ediExtEntity = _bookingEDIExt.FirstOrDefault(u => u.BookingId == fdentity.Id);
var ediExtEntity = await _bookingEDIExt.AsQueryable().Filter(null, true).Where(x => x.BookingId == fdentity.Id).FirstAsync();
if (ediExtEntity == null) if (ediExtEntity == null)
{ {
//写入EDI扩展 //写入EDI扩展

Loading…
Cancel
Save