shgx_tz_mom/ZR.Admin.WebApi/Controllers/mes/mm/MmInventoryReportController.cs
赵正易 20c7855995 feat(库存报表): 新增出入库报表功能及变动箱数字段
添加成品库出入库报表功能,包括入库报表和出库报表的查询接口
在WmGoodsRecord模型中新增ChangePackage字段记录变动箱数
修复Job_Blank.cs中多余的return null语句
2025-08-15 14:58:32 +08:00

43 lines
1.1 KiB
C#

using Microsoft.AspNetCore.Mvc;
using ZR.Admin.WebApi.Extensions;
using ZR.Model.MES.mm;
using ZR.Model.MES.mm.Dto;
using ZR.Service.mes.mm.IService;
namespace ZR.Admin.WebApi.Controllers.mes.mm
{
/// <summary>
/// 生产投料
/// </summary>
[Route("mes/mm/mmInventoryReport")]
public class MmInventoryReportController : BaseController
{
readonly IMmInventoryReportService mmInventoryReportService;
public MmInventoryReportController(IMmInventoryReportService mmInventoryReportService)
{
this.mmInventoryReportService = mmInventoryReportService;
}
/// <summary>
/// 成品库,入库清单
/// </summary>
/// <returns></returns>
[HttpPost("GetInventoryReportByPage")]
public IActionResult GetInventoryReportByPage([FromBody] WmGoodsRecordReportQueryDto query)
{
try
{
var response = mmInventoryReportService.GetInventoryReportByPage(query);
return SUCCESS(response);
}
catch (Exception)
{
throw;
}
}
}
}