diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs index cb1b9a67..6fc05a68 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageService.cs @@ -1986,9 +1986,9 @@ namespace Myshipping.Application RecursiveMethod(newflow, depth,model); } - if ((bool)result) + if (!(bool)result) { - if (flow.TrueMethod==null) + if (flow.FalseMethod==null) { return; } diff --git a/Myshipping.Core/Service/CommonDB/CommonDBService.cs b/Myshipping.Core/Service/CommonDB/CommonDBService.cs index 1e50201f..593ff025 100644 --- a/Myshipping.Core/Service/CommonDB/CommonDBService.cs +++ b/Myshipping.Core/Service/CommonDB/CommonDBService.cs @@ -359,7 +359,10 @@ public class CommonDBService : ICommonDBService, IDynamicApiController, ITransie // 如果装货港代码不为空,则根据装货港代码查询装货港与船代的映射关系 if (!string.IsNullOrEmpty(input.PortLoadCode)) { - List forwarderCodeList = await _relaPortLoadForwarderRep.AsQueryable().Where(x => x.PortLoadCode == input.PortLoadCode).Select(x => x.ForwarderCode).ToListAsync(); + List forwarderCodeList = await _relaPortLoadForwarderRep.AsQueryable() + .Where(x => x.PortLoadCode == input.PortLoadCode) + .Select(x => x.ForwarderCode) + .ToListAsync(); queryList = queryList.Where(x => forwarderCodeList.Contains(x.Code)).ToList(); }