Explorar o código

每天统计交易额时同时统计创客表中的ThisMonthTrade字段

lichunlei %!s(int64=3) %!d(string=hai) anos
pai
achega
7fecef57e2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      AppStart/Helper/StatService.cs

+ 1 - 0
AppStart/Helper/StatService.cs

@@ -1299,6 +1299,7 @@ namespace MySystem
                                         teamStat.NonDirectTradeAmt += TradeAmount;
                                     }
                                     db.SaveChanges();
+                                    OtherMySqlConn.op("update Users set ThisMonthTrade=ThisMonthTrade+"+TradeAmount+" where Id=" + UserId);
                                 }
                                 // RedisDbconn.Instance.Clear("TeamTotalAmount:" + NavUserId);
                                 // RedisDbconn.Instance.Clear("TeamTotalAmount:" + NavUserId + ":" + TradeMonth);