52 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.AspNetCore.Mvc;
using DOAN.Model.Dto;
using DOAN.Admin.WebApi.Filters;
using DOAN.Service.MES.mm.paintedparts_call.IService;
using DOAN.Model.MES.mm.paintedparts_call;
using DOAN.Model.MES.mm.paintedparts_call.Dto;
//创建时间2025-07-21
namespace DOAN.Admin.WebApi.Controllers
{
/// <summary>
/// 叫料需求表
/// </summary>
[Verify]
[Route("mes/materialManagement/paintedparts_call/generatePaintBOM")]
public class MmGeneratePaintBOMController : BaseController
{
/// <summary>
/// 叫料需求表接口
/// </summary>
private readonly IMmGeneratePaintBOMService _MmGeneratePaintBOMService;
public MmGeneratePaintBOMController(IMmGeneratePaintBOMService mmGeneratePaintBOMService)
{
_MmGeneratePaintBOMService = mmGeneratePaintBOMService;
}
/// <summary>
/// 生成油漆件BOM
/// </summary>
/// <returns></returns>
[HttpGet("generateBOM")]
public IActionResult GenerateMaterialBOM()
{
try
{
var response = _MmGeneratePaintBOMService.GenerateMaterialBOM();
return SUCCESS(response);
}
catch (Exception ex)
{
return ToResponse(new ApiResult(500, ex.Message));
}
}
}
}