From b8b58a9da729e58369730c886219a21faea290b9 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 26 Jan 2022 14:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/WMS/WMSSharePart90AppService.cs | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs index 9836266f..1c88919d 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSSharePart90AppService.cs @@ -496,6 +496,33 @@ namespace Win.Sfs.SettleAccount.Entities.WMS return ApplicationConsts.SuccessStr; } + public async Task CheckIsOutPut(List p_list) + { + if (p_list.Count() > 0) + { + var entity= p_list.FirstOrDefault(); + var day = entity.OrderBillNum.Right(3); + int _count = 0; + if (day == "D60") + { + _count= _wmsRepository.Count(p => p.Version == entity.Version && p.OrderBillNum.Contains("D30") && p.State!=2); + } + if (day == "D90") + { + _count = _wmsRepository.Count(p => p.Version == entity.Version && p.State != 2 && (p.OrderBillNum.Contains("D60") || p.OrderBillNum.Contains("D30"))); + } + if (_count > 0) + { + return false; + } + } + return true; + + } + + + + } }