Selaa lähdekoodia

修复统计数据条件

DuGuYang 1 vuosi sitten
vanhempi
commit
9d8357e1ef
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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());
                     }
                     //待考核