AddWorkorder 增加逻辑控制

This commit is contained in:
xiaowei.song
2023-11-15 15:36:18 +08:00
parent e67cf2cf9f
commit ec615329db
3 changed files with 60 additions and 3 deletions

View File

@@ -32,6 +32,10 @@ namespace ZR.Service.mes.pro
return (proWorkplanList, totalCount);
}
public List<ProWorkplan> GetProWorkplanById(string id)
{
return Context.Queryable<ProWorkplan>().Where(it => it.Id == id).ToList();
}
public int AddWorkPlan(ProWorkplan proWorkplan)
{
@@ -70,5 +74,7 @@ namespace ZR.Service.mes.pro
{
return Context.Deleteable<ProWorkorder>().In(id).ExecuteCommand();
}
}
}