增加获取工单查询

This commit is contained in:
xiaowei.song
2023-11-15 14:38:10 +08:00
parent 79b8251d8e
commit f3712b58e7
5 changed files with 55 additions and 0 deletions

View 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
{
}
}

View File

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

View 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
{
}
}

View File

@@ -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();
}
}
}