From f71a02229c1ba00fbecaead19256593ffb052753 Mon Sep 17 00:00:00 2001 From: duan <dante@isaints.net> Date: 星期三, 21 八月 2024 17:18:40 +0800 Subject: [PATCH] 1 --- src/DIXWeb.Business/MySQLBiz/MySQLInspectBaseBiz.cs | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/DIXWeb.Business/MySQLBiz/MySQLInspectBaseBiz.cs b/src/DIXWeb.Business/MySQLBiz/MySQLInspectBaseBiz.cs index d32f021..8324133 100644 --- a/src/DIXWeb.Business/MySQLBiz/MySQLInspectBaseBiz.cs +++ b/src/DIXWeb.Business/MySQLBiz/MySQLInspectBaseBiz.cs @@ -36,14 +36,28 @@ public void UpdateInspectedItems() { - string sql = "update dix.inspectiteminfo set IsInspected=1 where IsInspected=0;"; - Service.ExecuteSql(sql); - UpdateInspectedjudge(); + try + { + string sql = "update dix.inspectiteminfo set IsInspected=1 where IsInspected=0;"; + Service.ExecuteSql(sql); + UpdateInspectedjudge(); + } + catch (Exception) + { + throw new Exception(); + } } public void UpdateInspectedjudge() { - string sql = "update dix.inspectjudge set IsInspected=1 where IsInspected=0;"; - Service.ExecuteSql(sql); + try + { + string sql = "update dix.inspectjudge set IsInspected=1 where IsInspected=0;"; + Service.ExecuteSql(sql); + } + catch (Exception) + { + throw new Exception(); + } } public ResultMessage CompareFreqLimit(int objectid, int freqid) { -- Gitblit v1.8.0