修复生产看板数据

This commit is contained in:
朱斌 2025-09-02 15:29:18 +08:00
parent 6f3401179e
commit da09858630
2 changed files with 10 additions and 10 deletions

View File

@ -147,7 +147,7 @@ namespace MyCode.Project.Services.Implementation
Year = datetimeTemp.Year,
Month = datetimeTemp.Month,
};
result.Add(_MOOrdersRepository.GetMoDataChartHeadByYearAndMonth(yearAndMonth));
result.Add(_MOOrdersRepository.GetMoDataChartHeadByYearAndMonth(yearAndMonthTemp));
}
return result;
}

View File

@ -7,7 +7,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Admin.Controllers
{
@ -30,8 +30,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// <summary>
/// 获取生产订单
/// </summary>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public PageResult<PrdMoOrderResp> GetMoRespData(PagedSearch pagedSearch)
{
return _prdOrderService.GetPrdMoPageList(pagedSearch);
@ -40,8 +40,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// <summary>
/// 获取生产订单详情
/// </summary>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public PageResult<PrdMoOrderEntryResp> GetMoEntryRespData(PagedSearch<IdAct> search)
{
@ -51,8 +51,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// <summary>
/// 获取生产订单执行汇总报表数据
/// </summary>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public PageResult<PrdMOExecuteDetailRpt> GetMoExecuteSumRespData(PagedSearch pagedSearch)
{
return _prdOrderService.GetMoExecuteSumRespData(pagedSearch);
@ -63,8 +63,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// </summary>
/// <param name="yearAndMonth"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public PrdReportHead GetMoDataChartHeadByYearAndMonth(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetMoDataChartHeadByYearAndMonth(yearAndMonth);
@ -75,8 +75,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// </summary>
/// <param name="yearAndMonth"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public List<PrdReportHead> GetMoDataChartByYearAndMonth(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetMoDataChartByYearAndMonth(yearAndMonth);
@ -87,8 +87,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// </summary>
/// <param name="yearAndMonth"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public List<MaterialAndQty> GetPrdInStockGroupByMaterial(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetPrdInStockGroupByMaterial(yearAndMonth);
@ -99,8 +99,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// </summary>
/// <param name="yearAndMonth"></param>
/// <returns></returns>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public List<MaterialAndQty> GetPrdMoGroupByMaterial(YearAndMonth yearAndMonth)
{
return _prdOrderService.GetPrdMoGroupByMaterial(yearAndMonth);
@ -110,8 +110,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers
/// 获取即时库存数据,主要用作饼图,展示各物料库存数量(库存数量)
/// </summary>
/// <returns></returns>
[AllowAnonymous]
[HttpPost]
[AllowAnonymous]
public List<MaterialAndQty> GetInventoryGroupByMaterial()
{
return _prdOrderService.GetInventoryGroupByMaterial();