diff --git a/Reportapi/MyCode.Project.Services/Implementation/PrdOrderService.cs b/Reportapi/MyCode.Project.Services/Implementation/PrdOrderService.cs index bcdfa5e..e6680b1 100644 --- a/Reportapi/MyCode.Project.Services/Implementation/PrdOrderService.cs +++ b/Reportapi/MyCode.Project.Services/Implementation/PrdOrderService.cs @@ -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; } diff --git a/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/PrdDataChartController.cs b/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/PrdDataChartController.cs index 93b985b..942020b 100644 --- a/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/PrdDataChartController.cs +++ b/Reportapi/MyCode.Project.WebApi/Areas/Admin/Controllers/PrdDataChartController.cs @@ -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 /// /// 获取生产订单 /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public PageResult GetMoRespData(PagedSearch pagedSearch) { return _prdOrderService.GetPrdMoPageList(pagedSearch); @@ -40,8 +40,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// 获取生产订单详情 /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public PageResult GetMoEntryRespData(PagedSearch search) { @@ -51,8 +51,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// 获取生产订单执行汇总报表数据 /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public PageResult GetMoExecuteSumRespData(PagedSearch pagedSearch) { return _prdOrderService.GetMoExecuteSumRespData(pagedSearch); @@ -63,8 +63,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public PrdReportHead GetMoDataChartHeadByYearAndMonth(YearAndMonth yearAndMonth) { return _prdOrderService.GetMoDataChartHeadByYearAndMonth(yearAndMonth); @@ -75,8 +75,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public List GetMoDataChartByYearAndMonth(YearAndMonth yearAndMonth) { return _prdOrderService.GetMoDataChartByYearAndMonth(yearAndMonth); @@ -87,8 +87,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public List GetPrdInStockGroupByMaterial(YearAndMonth yearAndMonth) { return _prdOrderService.GetPrdInStockGroupByMaterial(yearAndMonth); @@ -99,8 +99,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// /// /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public List GetPrdMoGroupByMaterial(YearAndMonth yearAndMonth) { return _prdOrderService.GetPrdMoGroupByMaterial(yearAndMonth); @@ -110,8 +110,8 @@ namespace MyCode.Project.WebApi.Areas.Admin.Controllers /// 获取即时库存数据,主要用作饼图,展示各物料库存数量(库存数量) /// /// - [AllowAnonymous] [HttpPost] + [AllowAnonymous] public List GetInventoryGroupByMaterial() { return _prdOrderService.GetInventoryGroupByMaterial();