CCN.Modules.Customer.DataAccess.CustomerDA.DeleteComment C# (CSharp) Method

DeleteComment() public method

删除评论(逻辑删除)
public DeleteComment ( string innerid ) : int
innerid string
return int
        public int DeleteComment(string innerid)
        {
            var sqlStr = new StringBuilder("update `settled_comment` set `isdelete` =1 where innerid = @innerid ");

            using (var conn = Helper.GetConnection())
            {
                try
                {
                    Helper.ExecuteScalar<int>(sqlStr.ToString(), new { innerid });
                    return 1;
                }
                catch (Exception ex)
                {
                    return 0;
                }
            }
        }