AddWorkorder 增加逻辑控制
This commit is contained in:
@@ -14,6 +14,8 @@ namespace ZR.Service.mes.pro.IService
|
||||
|
||||
public (List<ProWorkplan>,int) GetAllData(int pageNum, int pageSize, int year, int week, string partNumber, string color);
|
||||
|
||||
public List<ProWorkplan> GetProWorkplanById(string id);
|
||||
|
||||
public int AddWorkPlan(ProWorkplan proWorkplan);
|
||||
|
||||
public int UpdateWorkPlan(ProWorkplan proWorkplan);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user