From 081fafd086fccfc90b31a1dd6bf2b19f3f181afc Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 24 Jun 2024 11:43:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=88=B1=E4=BD=8D=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingSlot/BookingSlotService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs index 1a4df4c9..185ad108 100644 --- a/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs +++ b/Myshipping.Application/Service/BookingSlot/BookingSlotService.cs @@ -1938,7 +1938,7 @@ namespace Myshipping.Application .WhereIF(!string.IsNullOrEmpty(input.LANENAME), u => u.LANENAME.Contains(input.LANENAME)) .WhereIF(input.WEEK_AT != null, u => u.WEEK_AT == input.WEEK_AT) .WhereIF(!string.IsNullOrEmpty(input.LOAD_GUARANTEE_FLAG), u => u.LOAD_GUARANTEE_FLAG == input.LOAD_GUARANTEE_FLAG) - .WhereIF(!string.IsNullOrWhiteSpace(input.SPLIT_OR_MERGE_FLAG), u => u.WEEK_AT == int.Parse(input.SPLIT_OR_MERGE_FLAG)) + .WhereIF(!string.IsNullOrWhiteSpace(input.SPLIT_OR_MERGE_FLAG), u => u.SPLIT_OR_MERGE_FLAG == int.Parse(input.SPLIT_OR_MERGE_FLAG)) //.WhereIF(isEnableCustomerAuthority, u => SqlFunc.Subqueryable() // .Where(x => x.BOOKING_SLOT_ID == u.Id) @@ -4229,8 +4229,9 @@ namespace Myshipping.Application if (rltList.Any(a => a.Item2 == 0)) { - result.succ = false; - result.msg = $" 成功数量:{rltList.Count(a => a.Item2 > 0)},失败数量:{rltList.Count(a => a.Item2 == 0)} 失败单号:{(string.Join(",", rltList.Select(a => a.Item1).ToArray()))}"; + _logger.LogInformation($" 成功数量:{rltList.Count(a => a.Item2 > 0)},失败数量:{rltList.Count(a => a.Item2 == 0)} 失败单号:{(string.Join(",", rltList.Select(a => a.Item1).ToArray()))}"); + //result.succ = false; + throw Oops.Oh($" 成功数量:{rltList.Count(a => a.Item2 > 0)},失败数量:{rltList.Count(a => a.Item2 == 0)} 失败单号:{(string.Join(",", rltList.Select(a => a.Item1).ToArray()))}"); }