46 lines
1.3 KiB
46 lines
1.3 KiB
3 months ago
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using WMS_GIRAF_Interface.Models;
|
||
|
using WMS_GIRAF_Interface.Repositories.Implement;
|
||
|
using WMS_GIRAF_Interface.Repositories.Interface;
|
||
|
|
||
|
namespace WMS_GIRAF_Interface.Controllers
|
||
|
{
|
||
|
|
||
|
[ApiController, Route("api/[controller]")]
|
||
|
public class SendInputStorageLinePathStateController :ControllerBase
|
||
|
{
|
||
|
private readonly IdestinationIdRepository _destinationIdRepository;
|
||
|
|
||
|
public SendInputStorageLinePathStateController(IdestinationIdRepository destinationIdRepository)
|
||
|
{
|
||
|
_destinationIdRepository = destinationIdRepository;
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 更新入库路径状态
|
||
|
/// </summary>
|
||
|
[HttpPost]
|
||
|
public void GetInputStatusFromGiraf(InputStorageLinePathState.Rootobject inputStorageLinePathState )
|
||
|
{
|
||
|
//根据LineNumber获取巷道信息
|
||
|
if (inputStorageLinePathState.LineNumber!=0)
|
||
|
{
|
||
|
var LaneWayInfo = _destinationIdRepository.GetDestinationId(inputStorageLinePathState.LineNumber);
|
||
|
if (LaneWayInfo!=null)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
//tlt:line number不可以为0
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|