Commit 94d7ed62 authored by liudong1993's avatar liudong1993

1

parent a3dfb996
...@@ -1993,12 +1993,12 @@ namespace Mall.Module.User ...@@ -1993,12 +1993,12 @@ namespace Mall.Module.User
{ {
if (TMoney > 0) if (TMoney > 0)
{ {
OrderNos += "\"" + item.OrderNo + "\","; decimal CommMoney = 0;
OrderIdList.Add(item.OrderId);
var chlist = clist.Where(x => x.OrderId == item.OrderId).ToList(); var chlist = clist.Where(x => x.OrderId == item.OrderId).ToList();
foreach (var qitem in chlist) foreach (var qitem in chlist)
{ {
TMoney -= (qitem.Commission ?? 0); TMoney -= (qitem.Commission ?? 0);
CommMoney+= (qitem.Commission ?? 0);
Dictionary<string, object> keyValues2 = new Dictionary<string, object>() { Dictionary<string, object> keyValues2 = new Dictionary<string, object>() {
{ nameof(RB_Goods_OrderCommission_Extend.IsRemit),1} { nameof(RB_Goods_OrderCommission_Extend.IsRemit),1}
}; };
...@@ -2011,6 +2011,8 @@ namespace Mall.Module.User ...@@ -2011,6 +2011,8 @@ namespace Mall.Module.User
}; };
goods_OrderCommissionRepository.Update(keyValues2, wheres2); goods_OrderCommissionRepository.Update(keyValues2, wheres2);
} }
OrderNos += "\"" + item.OrderNo + "\":" + CommMoney + "元,";
OrderIdList.Add(item.OrderId);
} }
} }
if (!string.IsNullOrEmpty(OrderNos)) if (!string.IsNullOrEmpty(OrderNos))
...@@ -3223,12 +3225,12 @@ namespace Mall.Module.User ...@@ -3223,12 +3225,12 @@ namespace Mall.Module.User
foreach (var item in olist) { foreach (var item in olist) {
if (TMoney > 0) if (TMoney > 0)
{ {
OrderNos += "\"" + item.OrderNo + "\","; decimal CommMoney = 0;
OrderIdList.Add(item.OrderId);
var chlist = clist.Where(x => x.OrderId == item.OrderId).ToList(); var chlist = clist.Where(x => x.OrderId == item.OrderId).ToList();
foreach (var qitem in chlist) foreach (var qitem in chlist)
{ {
TMoney -= (qitem.Commission ?? 0); TMoney -= (qitem.Commission ?? 0);
CommMoney += (qitem.Commission ?? 0);
Dictionary<string, object> keyValues2 = new Dictionary<string, object>() { Dictionary<string, object> keyValues2 = new Dictionary<string, object>() {
{ nameof(RB_Goods_OrderCommission_Extend.IsRemit),1} { nameof(RB_Goods_OrderCommission_Extend.IsRemit),1}
}; };
...@@ -3241,6 +3243,8 @@ namespace Mall.Module.User ...@@ -3241,6 +3243,8 @@ namespace Mall.Module.User
}; };
goods_OrderCommissionRepository.Update(keyValues2, wheres2, trans); goods_OrderCommissionRepository.Update(keyValues2, wheres2, trans);
} }
OrderNos += "\"" + item.OrderNo + "\":" + CommMoney + "元,";
OrderIdList.Add(item.OrderId);
} }
} }
if (!string.IsNullOrEmpty(OrderNos)) { if (!string.IsNullOrEmpty(OrderNos)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment