增加获取工单查询
This commit is contained in:
15
ZR.Service/mes/pro/IService/IProWorkorderService.cs
Normal file
15
ZR.Service/mes/pro/IService/IProWorkorderService.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Model.MES.op.DTO;
|
||||
|
||||
namespace ZR.Service.mes.pro.IService
|
||||
{
|
||||
public interface IProWorkorderService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -19,5 +19,7 @@ namespace ZR.Service.mes.pro.IService
|
||||
public int UpdateWorkPlan(ProWorkplan proWorkplan);
|
||||
|
||||
public int DeleteWorkPlan(string id);
|
||||
|
||||
public List<ProWorkorder> GetWorkorderList(string id);
|
||||
}
|
||||
}
|
||||
|
||||
20
ZR.Service/mes/pro/ProWorkorderService.cs
Normal file
20
ZR.Service/mes/pro/ProWorkorderService.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Infrastructure.Attribute;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using ZR.Model.mes.md;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
using ZR.Service.MES.md.IService;
|
||||
|
||||
namespace ZR.Service.mes.pro
|
||||
{
|
||||
[AppService(ServiceType = typeof(IProWorkorderService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class ProWorkorderService : BaseService<ProWorkorder>, IProWorkorderService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -49,5 +49,10 @@ namespace ZR.Service.mes.pro
|
||||
{
|
||||
return Context.Deleteable<ProWorkplan>().In(id).ExecuteCommand();
|
||||
}
|
||||
|
||||
public List<ProWorkorder> GetWorkorderList(string id)
|
||||
{
|
||||
return Context.Queryable<ProWorkorder>().Where(it => it.FkProPlanId == id).ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user