|
@@ -50,9 +50,9 @@ namespace MySystem
|
|
|
string startId = function.ReadInstance("/TradeRecord/Id3.txt");
|
|
string startId = function.ReadInstance("/TradeRecord/Id3.txt");
|
|
|
if(string.IsNullOrEmpty(startId))
|
|
if(string.IsNullOrEmpty(startId))
|
|
|
{
|
|
{
|
|
|
- startId = "867041";
|
|
|
|
|
|
|
+ startId = "2750000";
|
|
|
}
|
|
}
|
|
|
- DataTable idsDt = OtherMySqlConn.dtable("select Id from TradeRecord where Id>=" + startId + " and CreateDate>='2022-09-05 00:00:00' and MerchantId in (select MerchantId from HelpProfitMerIds) and SeoTitle='HelpProfit' and QueryCount>0 order by Id limit 50");
|
|
|
|
|
|
|
+ DataTable idsDt = OtherMySqlConn.dtable("select Id from TradeRecord where Id>=" + startId + " and CreateDate>='2022-09-05 00:00:00' and MerchantId in (select MerchantId from HelpProfitMerIds) and SeoTitle='HelpProfit' and QueryCount>0 and QueryCount<3 order by Id limit 50");
|
|
|
if(idsDt.Rows.Count > 0)
|
|
if(idsDt.Rows.Count > 0)
|
|
|
{
|
|
{
|
|
|
string ids = "";
|
|
string ids = "";
|
|
@@ -82,7 +82,7 @@ namespace MySystem
|
|
|
}).Entity;
|
|
}).Entity;
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
}
|
|
}
|
|
|
- selfStat.TradeAmount += TradeAmount;
|
|
|
|
|
|
|
+ selfStat.TradeAmount += TradeAmount * 1.01M;
|
|
|
}
|
|
}
|
|
|
OtherMySqlConn.op("update TradeRecord set QueryCount=3 where Id in (" + ids.TrimEnd(',') + ")");
|
|
OtherMySqlConn.op("update TradeRecord set QueryCount=3 where Id in (" + ids.TrimEnd(',') + ")");
|
|
|
function.WritePage("/TradeRecord/", "Id3.txt", startId);
|
|
function.WritePage("/TradeRecord/", "Id3.txt", startId);
|