|
@@ -32,7 +32,7 @@ namespace MySystem
|
|
|
while (true)
|
|
|
{
|
|
|
StatTradeAmount();
|
|
|
- Thread.Sleep(30000);
|
|
|
+ Thread.Sleep(300);
|
|
|
}
|
|
|
}
|
|
|
public void StatTradeAmount()
|
|
@@ -43,7 +43,7 @@ namespace MySystem
|
|
|
KxsMainModels.WebCMSEntities maindb = new KxsMainModels.WebCMSEntities();
|
|
|
try
|
|
|
{
|
|
|
- string start = DateTime.Now.AddDays(-10).ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
+ string start = DateTime.Now.AddDays(-100).ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
DataTable idsDt = OtherMySqlConn.dtable("select Id from ConsumerOrders where CreateDate>='" + start + "' and Status>0 and Version=0 order by Id limit 50");
|
|
|
if(idsDt.Rows.Count > 0)
|
|
|
{
|
|
@@ -144,12 +144,12 @@ namespace MySystem
|
|
|
{
|
|
|
merchant.TotalActAmount += TradeAmount;
|
|
|
merchant.TotalActActual += ActualAmount;
|
|
|
- if(merchant.ActivationStatus == 0 && merchant.TotalActAmount >= 10000M)
|
|
|
- {
|
|
|
- RedisDbconn.Instance.AddList("ActProfitQueue", MerchantId.ToString());
|
|
|
- merchant.ActivationStatus = 1;
|
|
|
- merchant.ActivationDate = DateTime.Now;
|
|
|
- }
|
|
|
+ // if(merchant.ActivationStatus == 0 && merchant.TotalActAmount >= 10000M)
|
|
|
+ // {
|
|
|
+ // RedisDbconn.Instance.AddList("ActProfitQueue", MerchantId.ToString());
|
|
|
+ // merchant.ActivationStatus = 1;
|
|
|
+ // merchant.ActivationDate = DateTime.Now;
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
db.SaveChanges();
|