放舱判断

optimize
wet 1 year ago
parent e1ea1abee7
commit d51c593f93

@ -1987,6 +1987,7 @@ namespace Myshipping.Application
public async Task<dynamic> SendLetterYard(long bookingId) public async Task<dynamic> SendLetterYard(long bookingId)
{ {
var entity = _repLetterYard.AsQueryable().Filter(null, true).First(x => x.BookingId == bookingId); var entity = _repLetterYard.AsQueryable().Filter(null, true).First(x => x.BookingId == bookingId);
if (entity!=null) {
var json = entity.ToJsonString(); var json = entity.ToJsonString();
try try
{ {
@ -2018,6 +2019,8 @@ namespace Myshipping.Application
_logger.LogError(ex.StackTrace); _logger.LogError(ex.StackTrace);
} }
}
return null; return null;
} }

Loading…
Cancel
Save