刘磊
2026-01-22 1924bdeca6414b6fec314c37260b44f20865d593
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
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("bdc")]
[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, string rfid)
    {
        return _MESService.PassPoint(stationCode, rfid);
    }
 
    /// <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("painting/pushWorkOrderInfo"), AllowAnonymous]
    public WebResponseContent pushWorkOrderInfo([FromBody] object json)
    {
        return _MESService.pushWorkOrderInfo(json);
    }
 
    /// <summary>
    /// 总装工单
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [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>
    /// BDC请求焊装车身信息
    /// </summary>
    /// <param name="json"></param>
    /// <returns></returns>
    [HttpPost, Route("issuedCharacter"), AllowAnonymous]
    public WebResponseContent issuedCharacter(string rfidPrint, string vin, string station,string palletCode)
    {
        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("order/pullLock"), AllowAnonymous]
    public WebResponseContent pullLock([FromBody] object json)
    {
        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);
    }
}