获取工单 排产工单 未排产工单
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Model.mes.md;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Service.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
using ZR.Service.MES.md;
|
||||
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
{
|
||||
|
||||
[Route("mes/pro/workorder")]
|
||||
public class ProWorkorderController : BaseController
|
||||
{
|
||||
private readonly IProWorkorderService proWorkorderService;
|
||||
|
||||
public ProWorkorderController(IProWorkorderService proWorkorderService)
|
||||
{
|
||||
this.proWorkorderService = proWorkorderService;
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("getworkorderListwithoutschedule")]
|
||||
public IActionResult GetWorkorderListWithoutSchedule(int pageNum, int pageSize, int year = -1, int week = -1, int date = -1)
|
||||
{
|
||||
(List<ProWorkorder>, int) data = proWorkorderService.GetWorkorderList(pageNum, pageSize, year, week, date, "0");
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
[HttpGet("getworkorderListwithschedule")]
|
||||
public IActionResult GetWorkorderListWithSchedule(int pageNum, int pageSize, int year = -1, int week = -1, int date = -1)
|
||||
{
|
||||
(List<ProWorkorder>, int) data = proWorkorderService.GetWorkorderList(pageNum, pageSize, year, week, date, "1");
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user