using RIZO.Model.MES.recipe;
using RIZO.Model.MES.recipe.Dto;
using RIZO.Service.MES.recipe;
using RIZO.Service.MES.recipe.IService;
using RIZO.ServiceCore.Middleware;
using Infrastructure.Controllers;
using MDM.Services.Recipe.IService;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
//创建时间:2025-12-05
namespace RIZO.WebApi.Controllers.MES.recipe
{
///
/// 应用配方
///
[Route("MasterDataManagement/Recipe/EffectiveRecipe")]
[AllowAnonymous]
public class EffectiveRecipeController : BaseController
{
///
/// 应用配方配方记录表接口
///
private readonly IEffectiveRecipeService _IEffectiveRecipeService;
public EffectiveRecipeController(IEffectiveRecipeService IEffectiveRecipeService)
{
_IEffectiveRecipeService = IEffectiveRecipeService;
}
///
/// 查询应用配方
///
///
///
[HttpGet("list")]
[ActionPermissionFilter(Permission = "pfrefproductrecipe:list")]
public IActionResult QueryPfRefProductRecipe([FromQuery] PfRefProductRecipeQueryDto parm)
{
var response = _IEffectiveRecipeService.GetList(parm);
return SUCCESS(response);
}
}
}