using AutoMapper.Configuration.Annotations;
|
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Mvc;
|
using WIDESEA_Core.BaseController;
|
using WIDESEA_DTO;
|
using WIDESEA_IStoragIntegrationServices;
|
|
namespace WIDESEA_WMSServer.Controllers;
|
|
[Route("api/[controller]")]
|
[ApiController]
|
public class MESController : Controller
|
{
|
private readonly IMESService _MESService;
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
public MESController(IMESService MESService, IHttpContextAccessor httpContextAccessor)
|
{
|
_httpContextAccessor = httpContextAccessor;
|
_MESService = MESService;
|
}
|
|
/// <summary>
|
/// 车身过点
|
/// </summary>
|
/// <param name="stationCode"></param>
|
/// <returns></returns>
|
[HttpPost, Route("PassPoint"), AllowAnonymous]
|
public WebResponseContent PassPoint(string stationCode)
|
{
|
return _MESService.PassPoint(stationCode);
|
}
|
|
/// <summary>
|
/// 预绑定工单
|
/// </summary>
|
/// <param name="json"></param>
|
/// <returns></returns>
|
[HttpPost, Route("prebind"), AllowAnonymous]
|
public WebResponseContent prebind([FromBody] object json)
|
{
|
return _MESService.prebind(json);
|
}
|
|
|
/// <summary>
|
/// 总装工单
|
/// </summary>
|
/// <param name="json"></param>
|
/// <returns></returns>
|
[HttpPost, Route("pushOrderInfo"), AllowAnonymous]
|
public WebResponseContent pushOrderInfo([FromBody] object json)
|
{
|
return _MESService.pushOrderInfo(json);
|
}
|
|
/// <summary>
|
/// BDC请求焊装车身信息
|
/// </summary>
|
/// <param name="json"></param>
|
/// <returns></returns>
|
[HttpPost, Route("issuedCharacter"), AllowAnonymous]
|
public WebResponseContent issuedCharacter([FromBody] string carCode, string vin, string station)
|
{
|
return _MESService.issuedCharacter(carCode, vin, station);
|
}
|
}
|