コード例 #1
0
ファイル: OrderManager.cs プロジェクト: Zane0816/5577yx
 /// <summary>
 /// 获取推广游戏条数
 /// </summary>
 /// <param name="UserId">用户Id</param>
 /// <returns>返回总条数</returns>
 public Double GetSpreadGameCount(int UserId, string WhereStr)
 {
     string[] re = WhereStr.Split('|');
     WhereStr = "";
     if (!string.IsNullOrEmpty(re[0]))
     {
         WhereStr += " and o.gameid = " + re[0];
     }
     else
     {
         WhereStr += " and 1=1";
     }
     if (string.IsNullOrEmpty(re[1]) || string.IsNullOrEmpty(re[2]))
     {
         WhereStr += " and 1=1";
     }
     else
     {
         WhereStr += " and o.paytime>='" + re[1] + "' and o.paytime<='" + re[2] + "'";
     }
     return(os.GetSpreadGameCount(UserId, WhereStr));
 }