Parcourir la source

修复统计数据条件

DuGuYang il y a 1 an
Parent
commit
9d8357e1ef
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      Util/MerchantAmountSummayUtil.cs

+ 1 - 1
Util/MerchantAmountSummayUtil.cs

@@ -40,7 +40,7 @@ namespace MySystem
                     var check = new MerchantAmountSummayService().QueryAmount("TradeAmount", " and IsAct=1 and TradeMonth='" + TradeTime + "' and MerchantId=" + MerchantId + "");
                     if (check.Count > 0)
                     {
-                        dic = new MerchantAmountSummayService().Sum("TradeAmount", " and IsAct=1 and TradeMonth='" + TradeTime + "'");
+                        dic = new MerchantAmountSummayService().Sum("TradeAmount", " and IsAct=1 and TradeMonth='" + TradeTime + "' and MerchantId=" + MerchantId + "");
                         TradeAmount = decimal.Parse(dic["TradeAmount"].ToString());
                     }
                     //待考核