查询工单详情
This commit is contained in:
31
DOAN.Admin.WebApi/Controllers/Mobile/ReportFlowController.cs
Normal file
31
DOAN.Admin.WebApi/Controllers/Mobile/ReportFlowController.cs
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
using DOAN.Service.Mobile.IService;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace DOAN.Admin.WebApi.Controllers.Mobile;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 工序流转卡
|
||||||
|
/// </summary>
|
||||||
|
[AllowAnonymous]
|
||||||
|
[Route("modile/reportflow")]
|
||||||
|
public class ReportFlowController : BaseController
|
||||||
|
{
|
||||||
|
//IReportFlowService
|
||||||
|
private readonly IReportFlowService _reportFlowService;
|
||||||
|
|
||||||
|
public ReportFlowController(IReportFlowService reportFlowService)
|
||||||
|
{
|
||||||
|
_reportFlowService = reportFlowService;
|
||||||
|
}
|
||||||
|
|
||||||
|
//TODO 查询工单详情
|
||||||
|
[HttpGet("get_workorder_detail")]
|
||||||
|
public IActionResult GetWorkOrderDetail(string workOrder)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(workOrder))
|
||||||
|
throw new CustomException("workOrderId 是空");
|
||||||
|
return SUCCESS(_reportFlowService.GetWorkOrderDetail(workOrder));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
10
DOAN.Service/Mobile/IService/IReportFlowService.cs
Normal file
10
DOAN.Service/Mobile/IService/IReportFlowService.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using DOAN.Model.MES.product;
|
||||||
|
|
||||||
|
namespace DOAN.Service.Mobile.IService;
|
||||||
|
|
||||||
|
public interface IReportFlowService: IBaseService<ProReportwork01>
|
||||||
|
{
|
||||||
|
|
||||||
|
ProWorkorder GetWorkOrderDetail(string workorder);
|
||||||
|
|
||||||
|
}
|
||||||
22
DOAN.Service/Mobile/ReportFlowService.cs
Normal file
22
DOAN.Service/Mobile/ReportFlowService.cs
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
using DOAN.Model.MES.product;
|
||||||
|
using DOAN.Model.Public;
|
||||||
|
using DOAN.Service.Mobile.IService;
|
||||||
|
using DOAN.Service.Public.IPublicService;
|
||||||
|
using Infrastructure.Attribute;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
namespace DOAN.Service.Mobile;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 广告管理Service业务层处理
|
||||||
|
/// </summary>
|
||||||
|
[AppService(ServiceType = typeof(IReportFlowService), ServiceLifetime = LifeTime.Transient)]
|
||||||
|
public class ReportFlowService : BaseService<ProReportwork01>, IReportFlowService
|
||||||
|
{
|
||||||
|
public ProWorkorder GetWorkOrderDetail(string workorder)
|
||||||
|
{
|
||||||
|
return Context.Queryable<ProWorkorder>().Where(x => x.Workorder == workorder).Single();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user