|
@@ -56,8 +56,8 @@ namespace MySystem
|
|
function.WritePage("/RecommandKing/", today + ".txt", DateTime.Now.ToString());
|
|
function.WritePage("/RecommandKing/", today + ".txt", DateTime.Now.ToString());
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 1);
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 1);
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 2);
|
|
Recommend(DateTime.Now.AddMonths(-1).ToString("yyyyMM"), 2);
|
|
- // Recommend(DateTime.Now.ToString("yyyyMM"), 1);
|
|
|
|
- // Recommend(DateTime.Now.ToString("yyyyMM"), 2);
|
|
|
|
|
|
+ Recommend(DateTime.Now.ToString("yyyyMM"), 1);
|
|
|
|
+ Recommend(DateTime.Now.ToString("yyyyMM"), 2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Recommend(string TradeMonth, int Kind)
|
|
public void Recommend(string TradeMonth, int Kind)
|
|
@@ -211,9 +211,9 @@ namespace MySystem
|
|
int ActCount = 0;
|
|
int ActCount = 0;
|
|
if(ActCount == 0)
|
|
if(ActCount == 0)
|
|
{
|
|
{
|
|
- if(statdb.KxsUserActTrade.Any(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 1))
|
|
|
|
|
|
+ if(statdb.KxsUserActTrade.Any(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 0))
|
|
{
|
|
{
|
|
- ActCount += statdb.KxsUserActTrade.Where(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 1).Sum(m => m.ActNum);
|
|
|
|
|
|
+ ActCount += statdb.KxsUserActTrade.Where(m => m.UserId == uid && m.TradeMonth == TradeMonthNum && m.TotalType == 0).Sum(m => m.ActNum);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(ActCount == 0)
|
|
if(ActCount == 0)
|