diff --git a/EquipMgr/Tnb.EquipMgr.Entities/Dto/MoldMaintainDelInput.cs b/EquipMgr/Tnb.EquipMgr.Entities/Dto/MoldMaintainDelInput.cs
new file mode 100644
index 00000000..0d078291
--- /dev/null
+++ b/EquipMgr/Tnb.EquipMgr.Entities/Dto/MoldMaintainDelInput.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Tnb.EquipMgr.Entities.Dto
+{
+ ///
+ /// 模具保养删除参数
+ ///
+ public class MoldMaintainDelInput : BaseInput
+ {
+ ///
+ /// 删除的表名
+ ///
+ public string table_name { get; set; }
+ }
+}
diff --git a/EquipMgr/Tnb.EquipMgr/ToolMoldMaintainGroupService.cs b/EquipMgr/Tnb.EquipMgr/ToolMoldMaintainGroupService.cs
index 52c7d969..2391aa23 100644
--- a/EquipMgr/Tnb.EquipMgr/ToolMoldMaintainGroupService.cs
+++ b/EquipMgr/Tnb.EquipMgr/ToolMoldMaintainGroupService.cs
@@ -97,11 +97,34 @@ namespace Tnb.EquipMgr
[HttpPost]
public async Task RelevanceMaintianGroupAndMold(MoldMaintainGroupItemRelationInput input) =>
await Relevance(input, nameof(ToolMoldMaintainGroupRelation.mold_id), it => it.item_group_id == input.item_group_id);
+ ///
+ /// 删除项目组与模具检查项信息
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task Delete(MoldMaintainDelInput input)
+ {
+ if (input.table_name == "item")
+ {
+ await Delete(it => it.item_group_id == input.item_group_id && input.ids.Contains(it.item_id));
+ }
+ else
+ {
+ await Delete(it => it.item_group_id == input.item_group_id && input.ids.Contains(it.mold_id));
+ }
+ }
#endregion
+
+ private async Task Delete(Expression> deleteExp) where T : BaseEntity, new()
+ {
+ await _db.Deleteable().Where(deleteExp).ExecuteCommandAsync();
+ }
+
private async Task Relevance(TSrc input, string name, Expression> deleleExp) where TDest : BaseEntity, new()
where TSrc : BaseInput
{