Browse Source

经营数据交易详情接口增加发给别人的分红列表

lcl 10 months ago
parent
commit
852d7b2981
1 changed files with 4 additions and 4 deletions
  1. 4 4
      Util/BusinessUtil.cs

+ 4 - 4
Util/BusinessUtil.cs

@@ -185,7 +185,7 @@ namespace MySystem
                 obj.Add("MerchantName", merchant.Name); //门店名称
 
                 List<Dictionary<string, object>> dataList = new List<Dictionary<string, object>>();
-                List<Dictionary<string, object>> dics = new ConsumerProfitService().List(new List<FieldItem>(), " and OrderId=" + int.Parse(subdata["Id"].ToString()) + "", 1, 999);
+                List<Dictionary<string, object>> dics = new ConsumerProfitService().List(new List<FieldItem>(), " and Sort=" + int.Parse(subdata["Id"].ToString()) + "", 1, 999);
                 foreach (Dictionary<string, object> dic in dics)
                 {
                     Dictionary<string, object> cdata = new Dictionary<string, object>();
@@ -195,11 +195,11 @@ namespace MySystem
                     cdata.Add("ProfitAmount", dic["GetMoney"].ToString()); //分红金额
                     dataList.Add(cdata);
                 }
-                obj.Add("ProfitTotalAmount", new ConsumerProfitService().Sum("GetMoney", " and OrderId=" + int.Parse(subdata["Id"].ToString()) + "")["GetMoney"]); //分红总金额
+                obj.Add("ProfitTotalAmount", new ConsumerProfitService().Sum("GetMoney", " and Sort=" + int.Parse(subdata["Id"].ToString()) + "")["GetMoney"]); //分红总金额
                 obj.Add("ProfitList", dataList); //订单分红记录列表
 
                 List<Dictionary<string, object>> dataList2 = new List<Dictionary<string, object>>();
-                List<Dictionary<string, object>> dics2 = new ConsumerProfitService().List(new List<FieldItem>(), " and Sort=" + int.Parse(subdata["Id"].ToString()) + "", 1, 999);
+                List<Dictionary<string, object>> dics2 = new ConsumerProfitService().List(new List<FieldItem>(), " and OrderId=" + int.Parse(subdata["Id"].ToString()) + "", 1, 999);
                 foreach (Dictionary<string, object> dic in dics2)
                 {
                     Dictionary<string, object> cdata = new Dictionary<string, object>();
@@ -209,7 +209,7 @@ namespace MySystem
                     cdata.Add("ProfitAmount", dic["GetMoney"].ToString()); //分红金额
                     dataList2.Add(cdata);
                 }
-                obj.Add("ProfitTotalAmount2", new ConsumerProfitService().Sum("GetMoney", " and Sort=" + int.Parse(subdata["Id"].ToString()) + "")["GetMoney"]); //分红总金额
+                obj.Add("ProfitTotalAmount2", new ConsumerProfitService().Sum("GetMoney", " and OrderId=" + int.Parse(subdata["Id"].ToString()) + "")["GetMoney"]); //分红总金额
                 obj.Add("ProfitList2", dataList2); //订单分红记录列表
             }
             return obj;