diff --git a/WeighBusiness/BL/ProductPlanBL.cs b/WeighBusiness/BL/ProductPlanBL.cs index 5a6f164..b391adf 100644 --- a/WeighBusiness/BL/ProductPlanBL.cs +++ b/WeighBusiness/BL/ProductPlanBL.cs @@ -146,7 +146,7 @@ namespace WeighBusiness.BL } //现在逻辑 - public static void UpdateButhcerDetailFinishNum(ButcherDetailData data,decimal? finishNum, decimal? detailID, long? goodsId, SqlHelperEx she2 = null) + public static void UpdateButhcerDetailFinishNum(ButcherDetailData data,decimal? finishNum, long detailID, long? goodsId, SqlHelperEx she2 = null) { string excuteSql = string.Empty; var table = SqlHelperEx.DoQuery("select ID from {0} where DetailID = {1}".FormatWith(TableNames.生产计划分割明细完工数量, detailID)); @@ -197,9 +197,9 @@ namespace WeighBusiness.BL data.DeliveryNumber = deliveryNum; } - catch + catch(Exception e) { - + //throw new Exception(e.ToString()); } @@ -407,9 +407,10 @@ namespace WeighBusiness.BL try { //获取全部的完工数量 - var details = list.Select(x => x.DetailID).Distinct().ToList(); + var details = list.Select(x => x.DetailID).Distinct(); + var detailStr = string.Join("|", details); var method = "/MainSystem/B3_HaoYue/Rpcs/DeliveryNumberInfoRpc/GetDeliveryNumberInfo"; - var deliveryInfo = RpcFacade.Call>>(method, details.ToArray()); + var deliveryInfo = RpcFacade.Call>>(method, detailStr); foreach(var tuple in deliveryInfo) { if (tuple.Item1 == null) @@ -420,9 +421,9 @@ namespace WeighBusiness.BL } } } - catch + catch(Exception e) { - + //throw new Exception(e.ToString()); } return list; }