From 0a48aec6a38d34db6e9194920aac7d2d19cadcb3 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期四, 04 四月 2024 16:22:01 +0800
Subject: [PATCH] 升级更新

---
 IStation.Application.SZJT/04-logic-tree/1-mgr/LogicTree_Controller.cs |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/IStation.Application.SZJT/04-logic-tree/1-mgr/LogicTree_Controller.cs b/IStation.Application.SZJT/04-logic-tree/1-mgr/LogicTree_Controller.cs
index 65ee447..ffccc2e 100644
--- a/IStation.Application.SZJT/04-logic-tree/1-mgr/LogicTree_Controller.cs
+++ b/IStation.Application.SZJT/04-logic-tree/1-mgr/LogicTree_Controller.cs
@@ -98,11 +98,11 @@
             var policy = new Service.LogicPolicy().GetByID(input.PolicyID);
             if (policy == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"PolicyID:{input.PolicyID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"PolicyID:{input.PolicyID} 鏁版嵁涓嶅瓨鍦�");
             }
             if (_service.IsExist(input.PolicyID, input.LogicType, input.LogicID))
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"LogicType:{input.LogicType}锛孡ogicID:{input.LogicID} 宸插瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"LogicType:{input.LogicType}锛孡ogicID:{input.LogicID} 宸插瓨鍦�");
             }
             var parentIds = new List<long>();
             if (input.ParentID > 0)
@@ -110,11 +110,11 @@
                 var parent = _service.GetByID(input.ParentID);
                 if (parent == null)
                 {
-                    throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ParentID:{input.ParentID} 鏁版嵁涓嶅瓨鍦�");
+                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ParentID:{input.ParentID} 鏁版嵁涓嶅瓨鍦�");
                 }
                 if (parent.PolicyID != input.PolicyID)
                 {
-                    throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"ParentID:{input.ParentID} 涓� PolicyID:{input.PolicyID} 涓嶅尮閰�");
+                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"ParentID:{input.ParentID} 涓� PolicyID:{input.PolicyID} 涓嶅尮閰�");
                 }
                 parentIds = TreeParentIdsHelper.GetChildParentIds(parent.ID, parent.ParentIds);
             }
@@ -162,7 +162,7 @@
             var model = _service.GetByID(input.ID);
             if (model == null)
             {
-                throw Oops.Oh(ErrorCodes.D001, $"ID:{input.ID}");
+                throw Oops.Oh(InternalErrorCodes.D001, $"ID:{input.ID}");
             }
             var parentIds = new List<long>();
             if (input.ParentID > 0)
@@ -170,7 +170,7 @@
                 var parent = _service.GetByID(input.ParentID);
                 if (parent == null)
                 {
-                    throw Oops.Oh(ErrorCodes.D001, $"ParentID:{input.ParentID}");
+                    throw Oops.Oh(InternalErrorCodes.D001, $"ParentID:{input.ParentID}");
                 }
                 parentIds = TreeParentIdsHelper.GetChildParentIds(parent.ID, parent.ParentIds);
             }
@@ -235,7 +235,7 @@
             var bol = _service.DeleteByID(input.ID, out string Msg);
             if (!bol)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, Msg);
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, Msg);
             }
             return bol;
         }
@@ -254,7 +254,7 @@
             var policy = new Service.LogicPolicy().GetByID(input.PolicyID);
             if (policy == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"PolicyID:{input.PolicyID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"PolicyID:{input.PolicyID} 鏁版嵁涓嶅瓨鍦�");
             }
             if (input.TreeList != null && input.TreeList.Count > 0)
             {
@@ -268,13 +268,13 @@
 
                 if (tempList.Exists(x => x.LogicType == IStation.DataType.LogicSite && x.Children != null && x.Children.Count > 0))
                 {
-                    throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"鑺傜偣閫昏緫鍏崇郴閿欒锛岃妫�鏌ュ悗閲嶈瘯锛�");
+                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"鑺傜偣閫昏緫鍏崇郴閿欒锛岃妫�鏌ュ悗閲嶈瘯锛�");
                 }
 
                 var groupTreeList = tempList.GroupBy(x => new { x.LogicType, x.LogicID }).ToList();
                 if (groupTreeList.Exists(x => x.Count() > 1))
                 {
-                    throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"鑺傜偣涓嶈兘閲嶅锛岃妫�鏌ュ悗閲嶈瘯锛�");
+                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"鑺傜偣涓嶈兘閲嶅锛岃妫�鏌ュ悗閲嶈瘯锛�");
                 }
 
             }

--
Gitblit v1.9.3