刘磊
2025-11-11 6fed1f731b16c1820a43fc34130a70b21465e2bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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);
    }
}