修复生产看板数据

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, Year = datetimeTemp.Year,
Month = datetimeTemp.Month, Month = datetimeTemp.Month,
}; };
result.Add(_MOOrdersRepository.GetMoDataChartHeadByYearAndMonth(yearAndMonth)); result.Add(_MOOrdersRepository.GetMoDataChartHeadByYearAndMonth(yearAndMonthTemp));
} }
return result; return result;
} }

View File

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