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()))}"); }