46 lines
1.1 KiB
C#
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));
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|