| | |
| | | |
| | | namespace WIDESEA_StoragIntegrationServices |
| | | { |
| | | /// <summary> |
| | | /// 车身è¿ç¹è¯·æ± |
| | | /// </summary> |
| | | public partial class MESService |
| | | { |
| | | public WebResponseContent PassPoint(string stationCode) |
| | | public WebResponseContent PassPoint(string stationCode, string rfid) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var configs = _configService.GetConfigsByCategory(CateGoryConst.CONFIG_SYS_MESIPAddress); |
| | | var wmsBase = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.MESIPAddress)?.ConfigValue; |
| | | var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.PassPoint)?.ConfigValue; |
| | | var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.AVIPASS)?.ConfigValue; |
| | | if (wmsBase == null || ipAddress == null) |
| | | { |
| | | throw new InvalidOperationException("WMS IP æªé
ç½®"); |
| | | } |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | var wmsIpAddress = wmsBase + ipAddress; |
| | | |
| | | var stationInfo = _stationManagerRepository.QueryFirst(x => x.stationChildCode == stationCode); |
| | | |
| | |
| | | union_key = Guid.NewGuid().ToString(), |
| | | line_code = stationInfo.stationChildCode, |
| | | message_time = DateTime.Now, |
| | | plant_code = "", |
| | | pvi = "", |
| | | plant_code = "1052", |
| | | pvi = rfid, |
| | | station_code = stationInfo.stationChildCode, |
| | | vin = "", |
| | | pass_time = DateTime.Now |
| | |
| | | throw new Exception($"车身è¿ç¹å¼å¸¸ï¼{responseContent.Message}"); |
| | | } |
| | | |
| | | LogFactory.GetLog("车身è¿ç¹").Info(true, $"\r\r--------------------------------------"); |
| | | LogFactory.GetLog("车身è¿ç¹").Info(true, $"å·¥ä½å·:{stationCode},RFID:{rfid}"); |
| | | |
| | | return content; |
| | | } |
| | | catch (Exception ex) |