diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs index 94a2f0d..6c1d3c9 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSSubmitService.cs @@ -88,8 +88,8 @@ namespace ICSSoft.DataProject //} //查询是否需要去除单据中已发完明细 - string excludeSql = @"DECLARE @ExcludeEnable BIT - SET @ExcludeEnable=(SELECT Enable FROM ICSConfiguration WHERE Code='excludeInvDelivered')"; + string excludeSql = string.Format(@"DECLARE @ExcludeEnable BIT + SET @ExcludeEnable=(SELECT Enable FROM ICSConfiguration WHERE Code='excludeInvDelivered' AND WorkPoint='{0}')", JsonData.WorkPoint); if (TransType == TransTypeEnum.ASN.GetDescription() || TransType == TransTypeEnum.OASN.GetDescription()) {