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; } }