Esempio n. 1
0
        /// <summary>
        /// 定向推广,明细记录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Insert(Tz888.Model.SubscribeSetTabLog model)
        {
            StringBuilder sql = new StringBuilder();

            sql.Append("insert into SubscribeSetTabLog(LoginName,SID,LogTimes,SubType)");
            sql.Append("values(");
            sql.Append("'" + model.LoginName + "',");
            sql.Append(model.Sid + ",");
            sql.Append("getdate(),");
            sql.Append("'" + model.SubType + "'");
            sql.Append(")");
            int a = DbHelperSQL.ExecuteSql(sql.ToString());

            if (a > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// 定向推广,明细记录
 /// </summary>
 public bool Insert(Tz888.Model.SubscribeSetTabLog model)
 {
     return(dal.Insert(model));
 }