From d5b93a3dff0064d9084d7298de742826d62be8c7 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Thu, 28 Mar 2024 12:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E7=94=A9=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TaskManagePlat/TaskManageRollingNominationService.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageRollingNominationService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageRollingNominationService.cs index b25c0f8a..4cabdaa1 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageRollingNominationService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageRollingNominationService.cs @@ -170,6 +170,10 @@ namespace Myshipping.Application var shipList = _taskRollingNominationShipInfoRepository.AsQueryable() .Where(a => a.NOM_ID == rollModel.PK_ID && a.GROUP_INDX == 1 && !a.IsDeleted).ToList(); + if(shipList == null) + shipList = _taskRollingNominationShipInfoRepository.AsQueryable() + .Where(a => a.NOM_ID == rollModel.PK_ID && a.GROUP_INDX == 0 && !a.IsDeleted).ToList(); + var fromEntity = shipList.FirstOrDefault(a => a.SHIP_TYPE.Equals("From", StringComparison.OrdinalIgnoreCase));