From edb3d6cded4db1c8a2886f6bdc39c2fe4c69b67a Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期三, 29 五月 2024 10:28:01 +0800
Subject: [PATCH] 优化升级,去除痕迹

---
 Yw.Application.Bimface.Core/03-bimface-file-relation/BimfaceFileRelation_Controller.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/Yw.Application.Bimface.Core/03-bimface-file-relation/BimfaceFileRelation_Controller.cs b/Yw.Application.Bimface.Core/03-bimface-file-relation/BimfaceFileRelation_Controller.cs
index 5f82a8b..db5c67b 100644
--- a/Yw.Application.Bimface.Core/03-bimface-file-relation/BimfaceFileRelation_Controller.cs
+++ b/Yw.Application.Bimface.Core/03-bimface-file-relation/BimfaceFileRelation_Controller.cs
@@ -8,7 +8,7 @@
     public class BimfaceFileRelation_Controller : IDynamicApiController
     {
 
-        private readonly Service.BimfaceFileRelation _service = new();
+        private readonly Yw.Service.BimfaceFileRelation _service = new();
 
 
         #region Query
@@ -76,7 +76,7 @@
             var bimfaceFile = new Yw.Service.BimfaceFile().GetByID(input.BimfaceFileID);
             if (bimfaceFile == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
             }
             var model = input.Adapt<AddBimfaceFileRelationInput, Model.BimfaceFileRelation>();
             model.SortCode = _service.GetMaxSortCode() + 1;
@@ -94,7 +94,7 @@
             var bimfaceFile = new Yw.Service.BimfaceFile().GetByID(input.BimfaceFileID);
             if (bimfaceFile == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
             }
             var model = input.Adapt<AddBimfaceFileRelationInput, Model.BimfaceFileRelation>();
             model.SortCode = _service.GetMaxSortCode(input.ObjectType, input.ObjectID) + 1;
@@ -112,7 +112,7 @@
             var bimfaceFile = new Yw.Service.BimfaceFile().GetByID(input.BimfaceFileID);
             if (bimfaceFile == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"BimfaceFileID:{input.BimfaceFileID} 鏁版嵁涓嶅瓨鍦�");
             }
             var model = input.Adapt<AddBimfaceFileRelationInput, Model.BimfaceFileRelation>();
             model.SortCode = _service.GetMaxSortCode(input.BimfaceFileID) + 1;
@@ -135,7 +135,7 @@
             var model = _service.GetByID(input.ID);
             if (model == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"ID:{input.ID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 鏁版嵁涓嶅瓨鍦�");
             }
             var rhs = new Model.BimfaceFileRelation(model);
             input.Adapt(rhs);
@@ -202,7 +202,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;
         }
@@ -217,7 +217,7 @@
             var bol = _service.DeleteExByID(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;
         }

--
Gitblit v1.9.3