lixiaojun
2022-08-18 9d0a6e97890b44f2b71d2425684082100bed07a9
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;
            }
        }