From 807a27084340a0f4e2c51b27baf31fd53d9af47d Mon Sep 17 00:00:00 2001
From: wet <1034391973@qq.com>
Date: Mon, 31 Jul 2023 12:40:13 +0800
Subject: [PATCH] 1
---
.../Service/BookingOrder/BookingOrderService.cs | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
index 3c25523f..440478e5 100644
--- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
+++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
@@ -810,7 +810,7 @@ namespace Myshipping.Application
CreatedUserId = UserManager.UserId,
CreatedUserName = UserManager.Name
});
- if (!string.IsNullOrEmpty(entity.MBLNO)&& !string.IsNullOrEmpty(entity.YARDID))
+ if (!string.IsNullOrEmpty(entity.MBLNO) && !string.IsNullOrEmpty(entity.YARDID))
{
await UpdateMblno(entity);
}
@@ -839,7 +839,16 @@ namespace Myshipping.Application
}
entity.VERSION = Guid.NewGuid().ToString();
+ if (entity.CARRIERID != mlist.CARRIERID || entity.VOYNO != mlist.VOYNO || entity.VESSEL != mlist.VESSEL)
+ {
+ var vess = await _vesselInfo.AsQueryable().Filter(null, true).Where(x => x.IsDeleted == false && x.TenantId == UserManager.TENANT_ID && x.CARRIERID == entity.CARRIERID &&
+ x.Vessel == entity.VESSEL && x.Voyno == entity.VOYNO).FirstAsync();
+
+
+ }
+
+
await _rep.AsUpdateable(entity).IgnoreColumns(it => new
{
it.ParentId,
@@ -7555,7 +7564,7 @@ namespace Myshipping.Application
///
///
///
- private async Task AutoYardData(long bookId)
+ private async Task AutoYardData(long bookId)
{
var order = _rep.AsQueryable().Filter(null, true).First(x => x.Id == bookId);