zhengzhou-byd-lms/DOAN.Admin.WebApi/Controllers/Bydlms/BydPackagePassStationController.cs
2025-06-23 17:32:47 +08:00

46 lines
1.1 KiB
C#

using DOAN.Model.Bydlms;
using DOAN.Service.Bydlms;
using Microsoft.AspNetCore.Mvc;
namespace DOAN.Admin.WebApi.Controllers.Bydlms
{
/// <summary>
/// 包装过站记录
/// </summary>
[Route("bydlms/BydPackagePassStation")]
[AllowAnonymous]
public class BydPackagePassStationController : BaseController
{
private IBydPackagePassStationService bydPackagePassStationService_;
public BydPackagePassStationController(IBydPackagePassStationService bydPackagePassStationService)
{
bydPackagePassStationService_ = bydPackagePassStationService;
}
[HttpPost("add")]
[Log(Title = "包装过站", BusinessType = BusinessType.INSERT)]
public IActionResult BatchAddBydProductionStation(PackagePassStation packStation)
{
try
{
var response = bydPackagePassStationService_.BatchAddBydProductionStation(packStation);
return SUCCESS(response);
}
catch (Exception e)
{
return ToResponse(new ApiResult(500, e.Message));
}
}
}
}