From 789027cd17a31a439efeef8ba1ef61705ba43edc Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期六, 12 十一月 2022 08:55:41 +0800
Subject: [PATCH] 1

---
 Community.DAL/QueryDAL.cs |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/Community.DAL/QueryDAL.cs b/Community.DAL/QueryDAL.cs
index fe9d2d5..283bd91 100644
--- a/Community.DAL/QueryDAL.cs
+++ b/Community.DAL/QueryDAL.cs
@@ -34,16 +34,9 @@
 
         public static DataTable QueryBuildingById(int id)
         {
-            try
-            {
-                string sql = string.Format(_queryBuilding, id);
+            string sql = string.Format(_queryBuilding, id);
 
-                return SQLiteHelper.GetDataTable(sql, null);
-            }
-            catch
-            {
-                return null;
-            }
+            return SQLiteHelper.GetDataTable(sql, null);
         }
 
         public static DataTable QueryHouse(string name, string unit, string num)

--
Gitblit v1.9.3