From 276e0052d7f6b7caa4c20d393b51e6e3c9581c5e Mon Sep 17 00:00:00 2001 From: dev02 Date: Thu, 10 Aug 2023 14:14:33 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=BE=8C=E7=AB=AF]=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=88=A4=E6=96=B7=E9=87=8D=E8=A4=87=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=A2=9D=E4=BB=B6=E9=81=8E=E6=BF=BE=E6=98=AF=E5=95=93?= =?UTF-8?q?=E7=94=A8=E4=B8=AD=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/Controllers/BuildInfoController.cs | 2 +- Backend/Controllers/SystemCategoryController.cs | 4 ++-- Backend/Controllers/UserInfoController.cs | 2 +- Backend/Controllers/VariableController.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Backend/Controllers/BuildInfoController.cs b/Backend/Controllers/BuildInfoController.cs index 8f580ce..f06e9bb 100644 --- a/Backend/Controllers/BuildInfoController.cs +++ b/Backend/Controllers/BuildInfoController.cs @@ -496,7 +496,7 @@ namespace Backend.Controllers try { var check = await backendRepository.GetOneAsync($@"select floor_guid from variable where floor_guid != {post.Floor_guid} and building_tag = '{post.Building_tag}' and - full_name = '{post.Full_name}';"); + full_name = '{post.Full_name}' and deleted = 0;"); if (!string.IsNullOrEmpty(check)) { apiResult.Code = "9998"; diff --git a/Backend/Controllers/SystemCategoryController.cs b/Backend/Controllers/SystemCategoryController.cs index 350acdb..a45c5e1 100644 --- a/Backend/Controllers/SystemCategoryController.cs +++ b/Backend/Controllers/SystemCategoryController.cs @@ -99,7 +99,7 @@ namespace Backend.Controllers object param = new { Deleted = 0, id = post.id }; - var check = await backendRepository.GetOneAsync($"select id from variable where id != {post.id} and system_type = '{main_system_type}' and system_value = '{post.system_value}';"); + var check = await backendRepository.GetOneAsync($"select id from variable where id != {post.id} and system_type = '{main_system_type}' and system_value = '{post.system_value}' and deleted = 0;"); if (!string.IsNullOrEmpty(check)) { apiResult.Code = "9998"; @@ -317,7 +317,7 @@ namespace Backend.Controllers try { - var check = await backendRepository.GetOneAsync($"select id from variable where id != {post.id} and system_type = '{sub_system_type}' and system_value = '{post.system_value}';"); + var check = await backendRepository.GetOneAsync($"select id from variable where id != {post.id} and system_type = '{sub_system_type}' and system_value = '{post.system_value}' and deleted = 0;"); if (!string.IsNullOrEmpty(check)) { apiResult.Code = "9998"; diff --git a/Backend/Controllers/UserInfoController.cs b/Backend/Controllers/UserInfoController.cs index 5572c93..c574434 100644 --- a/Backend/Controllers/UserInfoController.cs +++ b/Backend/Controllers/UserInfoController.cs @@ -314,7 +314,7 @@ namespace Backend.Controllers try { - var check = await backendRepository.GetOneAsync($"select role_guid from role where role_guid != '{post.Id}' and full_name = '{post.Name}';"); + var check = await backendRepository.GetOneAsync($"select role_guid from role where role_guid != '{post.Id}' and full_name = '{post.Name}' and deleted = 0;"); if (!string.IsNullOrEmpty(check)) { apiResult.Code = "9998"; diff --git a/Backend/Controllers/VariableController.cs b/Backend/Controllers/VariableController.cs index 83afaf8..7c2d97e 100644 --- a/Backend/Controllers/VariableController.cs +++ b/Backend/Controllers/VariableController.cs @@ -129,7 +129,7 @@ namespace Backend.Controllers try { var check = await backendRepository.GetOneAsync($@"select id from variable where id != {post.id} and system_type = '{post.System_type}' and system_value = '{post.system_value}' - and system_key = '{post.System_key}';"); + and system_key = '{post.System_key}' and deleted = 0;"); if (!string.IsNullOrEmpty(check)) { apiResult.Code = "9998";