继续
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.mes.md;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
using ZR.Service.MES.md;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
@@ -9,11 +11,19 @@ namespace ZR.Admin.WebApi.Controllers.MES.pro
|
||||
[Route("mes/pro/workplan")]
|
||||
public class ProWorkplanController : BaseController
|
||||
{
|
||||
private readonly IProWorkplanService proWorkplanService;
|
||||
|
||||
public ProWorkplanController(IProWorkplanService proWorkplanService)
|
||||
{
|
||||
this.proWorkplanService = proWorkplanService;
|
||||
|
||||
|
||||
}
|
||||
|
||||
[HttpGet("list")]
|
||||
public IActionResult List(int pageNum, int pageSize, int year , int week,string partNumber="",string color="")
|
||||
public IActionResult List(int pageNum, int pageSize, int year, int week, string partNumber = "", string color = "")
|
||||
{
|
||||
(int, List<MdBom>) data = (0,null);
|
||||
(List<ProWorkplan>,int) data = proWorkplanService.GetAllData(pageNum, pageSize, year, week, partNumber, color);
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user