刘磊
2026-01-22 1924bdeca6414b6fec314c37260b44f20865d593
ÏîÄ¿´úÂë/WMS/WMSServer/WIDESEA_WMSServer/Controllers/MES/MESController.cs
@@ -7,7 +7,7 @@
namespace WIDESEA_WMSServer.Controllers;
[Route("api/BDC")]
[Route("bdc")]
[ApiController]
public class MESController : Controller
{
@@ -26,7 +26,7 @@
    /// <param name="stationCode"></param>
    /// <returns></returns>
    [HttpPost, Route("PassPoint"), AllowAnonymous]
    public WebResponseContent PassPoint(string stationCode,string rfid)
    public WebResponseContent PassPoint(string stationCode, string rfid)
    {
        return _MESService.PassPoint(stationCode, rfid);
    }
@@ -43,14 +43,36 @@
    }
    /// <summary>
    /// æ¶‚装工单
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("painting/pushWorkOrderInfo"), AllowAnonymous]
    public WebResponseContent pushWorkOrderInfo([FromBody] object json)
    {
        return _MESService.pushWorkOrderInfo(json);
    }
    /// <summary>
    /// æ€»è£…工单
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("pushOrderInfo"), AllowAnonymous]
    [HttpPost, Route("order/pushOrderInfo"), AllowAnonymous]
    public WebResponseContent pushOrderInfo([FromBody] object json)
    {
        return _MESService.pushOrderInfo(json);
    }
    /// <summary>
    /// å·¥å•排撤
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("painting/removeWorkOrderInfo"), AllowAnonymous]
    public WebResponseContent removeWorkOrderInfo([FromBody] object json)
    {
        return _MESService.removeWorkOrderInfo(json);
    }
    /// <summary>
@@ -59,19 +81,52 @@
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("issuedCharacter"), AllowAnonymous]
    public WebResponseContent issuedCharacter([FromBody] string carCode, string vin, string station)
    public WebResponseContent issuedCharacter(string rfidPrint, string vin, string station,string palletCode)
    {
        return _MESService.issuedCharacter(carCode, vin, station);
        return _MESService.issuedCharacter(rfidPrint, vin, station, palletCode);
    }
    /// <summary>
    /// è½¦èº«è¿‡ç‚¹
    /// BDC请求车身特征
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("getCharacteristic"), AllowAnonymous]
    public WebResponseContent getCharacteristic(string station, string rfid)
    {
        return _MESService.getCharacteristic(station, rfid);
    }
    /// <summary>
    /// MES拉动锁车
    /// </summary>
    /// <param name="stationCode"></param>
    /// <returns></returns>
    [HttpPost, Route("PassPoint"), AllowAnonymous]
    public WebResponseContent PassPoint(string stationCode, string rfid)
    [HttpPost, Route("order/pullLock"), AllowAnonymous]
    public WebResponseContent pullLock([FromBody] object json)
    {
        return _MESService.(stationCode, rfid);
        return _MESService.pullLock(json);
    }
    /// <summary>
    /// MES同步订单特征
    /// </summary>
    /// <param name="stationCode"></param>
    /// <returns></returns>
    [HttpPost, Route("order/syncOrderFeature"), AllowAnonymous]
    public WebResponseContent syncOrderFeature([FromBody] object json)
    {
        return _MESService.syncOrderFeature(json);
    }
    /// <summary>
    /// ç›´é€šæ¶‚装绑定工单
    /// </summary>
    /// <param name="stationCode"></param>
    /// <returns></returns>
    [HttpPost, Route("bindWorkOrder"), AllowAnonymous]
    public WebResponseContent bindWorkOrder(string station, string rfid)
    {
        return _MESService.bindWorkOrder(station, rfid);
    }
}