From 0f7975cfd6857826f28e0cb72b9935489c13868c Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期六, 30 三月 2024 17:10:34 +0800
Subject: [PATCH] 优化升级

---
 Yw.Application.DMA.Core/03-dma_site_binding/DmaSiteBinding_Controller.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Yw.Application.DMA.Core/03-dma_site_binding/DmaSiteBinding_Controller.cs b/Yw.Application.DMA.Core/03-dma_site_binding/DmaSiteBinding_Controller.cs
index 0c39422..0402d20 100644
--- a/Yw.Application.DMA.Core/03-dma_site_binding/DmaSiteBinding_Controller.cs
+++ b/Yw.Application.DMA.Core/03-dma_site_binding/DmaSiteBinding_Controller.cs
@@ -66,11 +66,11 @@
             var model = new Service.DmaSite().GetByID(input.SiteID);
             if (model == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.D001, $"SiteID:{input.SiteID} 鏁版嵁涓嶅瓨鍦�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"SiteID:{input.SiteID} 鏁版嵁涓嶅瓨鍦�");
             }
             if (_service.IsExistValidBySiteID(input.SiteID))
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"SiteID:{input.SiteID} 宸茬粦瀹氾紝璇疯В闄ょ粦瀹氬悗閲嶈瘯锛�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"SiteID:{input.SiteID} 宸茬粦瀹氾紝璇疯В闄ょ粦瀹氬悗閲嶈瘯锛�");
             }
             var binding = new Model.DmaSiteBinding()
             {
@@ -91,7 +91,7 @@
             var binding = _service.GetValidBySiteID(input.SiteID);
             if (binding == null)
             {
-                throw YOops.Oh(eResultCode.Alert, ErrorCodes.V001, $"SiteID:{input.SiteID} 鏈粦瀹氾紝鏃犳硶瑙g粦锛�");
+                throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"SiteID:{input.SiteID} 鏈粦瀹氾紝鏃犳硶瑙g粦锛�");
             }
             var rhs = new Model.DmaSiteBinding(binding)
             {
@@ -114,7 +114,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;
         }

--
Gitblit v1.9.3