2026-01-10 13:47:54 +08:00
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 应用配方
|
|
|
|
|
|
/// </summary>
|
2026-01-10 16:42:55 +08:00
|
|
|
|
[Route("MasterDataManagement/Recipe/EffectiveRecipe")]
|
2026-01-10 13:47:54 +08:00
|
|
|
|
[AllowAnonymous]
|
|
|
|
|
|
public class EffectiveRecipeController : BaseController
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 应用配方配方记录表接口
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
private readonly IEffectiveRecipeService _IEffectiveRecipeService;
|
|
|
|
|
|
|
|
|
|
|
|
public EffectiveRecipeController(IEffectiveRecipeService IEffectiveRecipeService)
|
|
|
|
|
|
{
|
|
|
|
|
|
_IEffectiveRecipeService = IEffectiveRecipeService;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询应用配方
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="parm"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet("list")]
|
|
|
|
|
|
[ActionPermissionFilter(Permission = "pfrefproductrecipe:list")]
|
|
|
|
|
|
public IActionResult QueryPfRefProductRecipe([FromQuery] PfRefProductRecipeQueryDto parm)
|
|
|
|
|
|
{
|
|
|
|
|
|
var response = _IEffectiveRecipeService.GetList(parm);
|
|
|
|
|
|
return SUCCESS(response);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|