| | |
| | | |
| | | public static string GetFilePathByGuid(string guid) |
| | | { |
| | | string sql = "select path from lf.sys_meta_file where guid = @guid limit 1"; |
| | | string sql = "select path from lf.sys_meta where guid = @guid limit 1"; |
| | | |
| | | DbParameter dp = new NpgsqlParameter("@guid", guid); |
| | | object obj = Helper.GetScalar(sql, dp); |
| | |
| | | |
| | | public static bool IsFileExists(string guid) |
| | | { |
| | | string sql = "select count(*) from lf.sys_meta_file where guid = @guid limit 1"; |
| | | string sql = "select count(*) from lf.sys_meta where guid = @guid"; |
| | | |
| | | DbParameter dp = new NpgsqlParameter("@guid", guid); |
| | | object obj = Helper.GetScalar(sql, dp); |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LogOut.Error(ex.Message + "\r\n" + ex.StackTrace); |
| | | vd.Status = "失败!"; |
| | | } |
| | | } |