Просмотр исходного кода

经营数据记录(半年)接口,微信支付宝数据反了

lcl 10 месяцев назад
Родитель
Сommit
629a3a5c56
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Util/Business/BusinessUtil.cs

+ 1 - 1
Util/Business/BusinessUtil.cs

@@ -104,7 +104,7 @@ namespace MySystem
 
             var end = DateTime.Now.ToString("yyyyMM");
             var start = DateTime.Now.AddMonths(-5).ToString("yyyyMM");
-            DataTable dt = CustomerSqlConn.dtable("SELECT TradeMonth 日期,SUM(TradeAmount) 营业总金额,SUM(TotalActual) 实收总金额,SUM(IF(IsAct=1,TotalActual,0)) 活动总金额,SUM(IF(IsAct=0,TotalActual,0)) 非活动总金额,SUM(IF(PayMode=1,TotalActual,0)) 微信实收,SUM(IF(PayMode=2,TotalActual,0)) 支付宝实收,SUM(TradeCount) 订单数 FROM MerchantAmountSummay WHERE MerchantId=" + MerchantId + " AND TradeMonth>='" + start + "' AND TradeMonth<='" + end + "' GROUP BY TradeMonth ORDER BY TradeMonth DESC", AppConfig.Base.SqlConnStr);
+            DataTable dt = CustomerSqlConn.dtable("SELECT TradeMonth 日期,SUM(TradeAmount) 营业总金额,SUM(TotalActual) 实收总金额,SUM(IF(IsAct=1,TotalActual,0)) 活动总金额,SUM(IF(IsAct=0,TotalActual,0)) 非活动总金额,SUM(IF(PayMode=2,TotalActual,0)) 微信实收,SUM(IF(PayMode=1,TotalActual,0)) 支付宝实收,SUM(TradeCount) 订单数 FROM MerchantAmountSummay WHERE MerchantId=" + MerchantId + " AND TradeMonth>='" + start + "' AND TradeMonth<='" + end + "' GROUP BY TradeMonth ORDER BY TradeMonth DESC", AppConfig.Base.SqlConnStr);
             if (dt.Rows.Count < 1)
             {
                 return dataList;