/// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(XHD.Model.shop_payment_attr model)
        {
            StringBuilder strSql = new StringBuilder();

            strSql.Append("update shop_payment_attr set ");
            strSql.Append("pay_id=@pay_id,");
            strSql.Append("attr_key=@attr_key,");
            strSql.Append("attr_values=@attr_values,");
            strSql.Append("input_type=@input_type");
            strSql.Append(" where attr_id=@attr_id ");
            MySqlParameter[] parameters =
            {
                new MySqlParameter("@pay_id",      MySqlDbType.Int32,    11),
                new MySqlParameter("@attr_key",    MySqlDbType.VarChar,  30),
                new MySqlParameter("@attr_values", MySqlDbType.VarChar, 100),
                new MySqlParameter("@input_type",  MySqlDbType.VarChar,  30),
                new MySqlParameter("@attr_id",     MySqlDbType.Int32, 11)
            };
            parameters[0].Value = model.pay_id;
            parameters[1].Value = model.attr_key;
            parameters[2].Value = model.attr_values;
            parameters[3].Value = model.input_type;
            parameters[4].Value = model.attr_id;

            int rows = Shop_DbHelperMySQL.ExecuteSql(strSql.ToString(), parameters);

            if (rows > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }