From 9d0a6e97890b44f2b71d2425684082100bed07a9 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期四, 18 八月 2022 16:35:38 +0800
Subject: [PATCH] 新增附件根据附加类型及附加id删除接口

---
 DAL/IStation.DAL4Basic/attachment/AttachmentFile.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/DAL/IStation.DAL4Basic/attachment/AttachmentFile.cs b/DAL/IStation.DAL4Basic/attachment/AttachmentFile.cs
index 83ad45e..8ad2da5 100644
--- a/DAL/IStation.DAL4Basic/attachment/AttachmentFile.cs
+++ b/DAL/IStation.DAL4Basic/attachment/AttachmentFile.cs
@@ -31,6 +31,19 @@
             }
         }
 
+        /// <summary>
+        /// 閫氳繃 AttachType 鍜� AttachID 鍒犻櫎
+        /// </summary>
+        public bool DeleteByAttachTypeAndAttachID(long CorpID, string AttachType, long AttachID)
+        {
+            using (SqlSugarClient db = new SqlSugarClient(ConnectionConfig))
+            {
+                return db.Deleteable<Entity.AttachmentFile>()
+                    .Where(x => x.CorpID == CorpID && x.AttachType==AttachType&&x.AttachID==AttachID)
+                    .ExecuteCommand() > 0;
+            }
+        }
+
 
 
 

--
Gitblit v1.9.3