From dad0c33f18a3175d1235512673c6fc71d0d87dcc Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期五, 07 六月 2024 16:07:36 +0800
Subject: [PATCH] Trace bug修复

---
 Yw.Application.DMA.Core/01-dma_area/DmaArea_Controller.cs |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/Yw.Application.DMA.Core/01-dma_area/DmaArea_Controller.cs b/Yw.Application.DMA.Core/01-dma_area/DmaArea_Controller.cs
index 20c0fe5..7c9ab92 100644
--- a/Yw.Application.DMA.Core/01-dma_area/DmaArea_Controller.cs
+++ b/Yw.Application.DMA.Core/01-dma_area/DmaArea_Controller.cs
@@ -58,13 +58,6 @@
         [HttpPost]
         public long Insert([Required] AddDmaAreaInput input)
         {
-            if (!string.IsNullOrEmpty(input.Code))
-            {
-                if (_service.IsExistCode(input.Code))
-                {
-                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code}", "缂栫爜宸插瓨鍦�");
-                }
-            }
             if (!string.IsNullOrEmpty(input.TagName))
             {
                 if (_service.IsExistTagName(input.TagName))
@@ -93,13 +86,6 @@
             if (model == null)
             {
                 throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.D001, $"ID:{input.ID} 鏁版嵁涓嶅瓨鍦�");
-            }
-            if (!string.IsNullOrEmpty(input.Code))
-            {
-                if (_service.IsExistCodeExceptID(input.Code, input.ID))
-                {
-                    throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, $"Code:{input.Code}", "缂栫爜宸插瓨鍦�");
-                }
             }
             if (!string.IsNullOrEmpty(input.TagName))
             {
@@ -180,28 +166,6 @@
         #endregion
 
         #region Exist
-
-        /// <summary>
-        /// 鍒ゆ柇 Code 鏄惁瀛樺湪
-        /// </summary>
-        [Route("IsExistCode@V1.0")]
-        [HttpGet]
-        public bool IsExistCode([FromQuery][Required] CodeInput input)
-        {
-            var bol = _service.IsExistCode(input.Code);
-            return bol;
-        }
-
-        /// <summary>
-        ///  鍒ゆ柇 Code 鏄惁瀛樺湪 ExceptID
-        /// </summary>
-        [Route("IsExistCodeExceptID@V1.0")]
-        [HttpGet]
-        public bool IsExistCodeExceptID([FromQuery][Required] CodeExceptInput input)
-        {
-            var bol = _service.IsExistCodeExceptID(input.Code, input.ExceptID);
-            return bol;
-        }
 
         /// <summary>
         /// 鍒ゆ柇TagName鏄惁瀛樺湪

--
Gitblit v1.9.3