提交
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Model.DBModel;
|
||||
using ZR.Model.mes.pro;
|
||||
using ZR.Service.mes.pro.IService;
|
||||
|
||||
namespace ZR.Admin.WebApi.Controllers.mes.pro
|
||||
{
|
||||
[Route("mes/pro/workplan_v2")]
|
||||
public class ProWorkplanV2Controller : BaseController
|
||||
{
|
||||
|
||||
private readonly IProWorkplanServiceV2 proWorkplanService;
|
||||
|
||||
public ProWorkplanV2Controller(IProWorkplanServiceV2 proWorkplanService)
|
||||
{
|
||||
this.proWorkplanService = proWorkplanService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取生产计划列表
|
||||
/// </summary>
|
||||
/// <param name="pageNum">页编号</param>
|
||||
/// <param name="pageSize">页大小</param>
|
||||
/// <param name="year">年份</param>
|
||||
/// <param name="week">周数</param>
|
||||
/// <param name="partNumber">零件号</param>
|
||||
/// <param name="color">颜色</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
public IActionResult List(int pageNum, int pageSize, int year = -1, int week = -1, string partNumber = "", string color = "")
|
||||
{
|
||||
(List<ProWorklplan_v2>, int) data = proWorkplanService.GetAllData(pageNum, pageSize, year, week, partNumber, color);
|
||||
|
||||
return ToResponse(new ApiResult(200, "success", data));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user