Browse Source

修改 取值

master
wushukun 6 years ago
parent
commit
4d784421e5
1 changed files with 8 additions and 7 deletions
  1. +8
    -7
      WeighBusiness/BL/ProductPlanBL.cs

+ 8
- 7
WeighBusiness/BL/ProductPlanBL.cs View File

@ -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; string excuteSql = string.Empty;
var table = SqlHelperEx.DoQuery("select ID from {0} where DetailID = {1}".FormatWith(TableNames., detailID)); var table = SqlHelperEx.DoQuery("select ID from {0} where DetailID = {1}".FormatWith(TableNames., detailID));
@ -197,9 +197,9 @@ namespace WeighBusiness.BL
data.DeliveryNumber = deliveryNum; data.DeliveryNumber = deliveryNum;
} }
catch
catch(Exception e)
{ {
//throw new Exception(e.ToString());
} }
@ -407,9 +407,10 @@ namespace WeighBusiness.BL
try 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 method = "/MainSystem/B3_HaoYue/Rpcs/DeliveryNumberInfoRpc/GetDeliveryNumberInfo";
var deliveryInfo = RpcFacade.Call<List<Tuple<long?, decimal?>>>(method, details.ToArray());
var deliveryInfo = RpcFacade.Call<List<Tuple<long?, decimal?>>>(method, detailStr);
foreach(var tuple in deliveryInfo) foreach(var tuple in deliveryInfo)
{ {
if (tuple.Item1 == null) if (tuple.Item1 == null)
@ -420,9 +421,9 @@ namespace WeighBusiness.BL
} }
} }
} }
catch
catch(Exception e)
{ {
//throw new Exception(e.ToString());
} }
return list; return list;
} }


Loading…
Cancel
Save