|
|
@@ -266,9 +266,14 @@ namespace MySystem
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
+ string condition = "";
|
|
|
+ if(TableName == "PosMerchantTradeSummay") condition += " and Id<=14473274";
|
|
|
+ if(TableName == "UserTradeMonthSummary") condition += " and Id<=1132650";
|
|
|
+ if(TableName == "HelpProfitMerTradeSummay") condition += " and Id<=473971";
|
|
|
+ if(TableName == "RecommendTradeSummary") condition += " and Id<=236748";
|
|
|
string sql = "";
|
|
|
int startId = int.Parse(function.CheckInt(function.ReadInstance("/TradeRecord/" + TableName + "Id.txt")));
|
|
|
- DataTable dt = CustomerSqlConn.dtable("select * from " + TableName + " where Id>" + startId + " order by Id limit 100", AppConfig.Base.SqlConn);
|
|
|
+ DataTable dt = CustomerSqlConn.dtable("select * from " + TableName + " where Id>" + startId + condition + " order by Id limit 100", AppConfig.Base.SqlConn);
|
|
|
if(dt.Rows.Count > 0)
|
|
|
{
|
|
|
foreach(DataRow dr in dt.Rows)
|