using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core; using WIDESEA_DTO; namespace WIDESEA_StoragIntegrationServices { public partial class WCSService { /// /// 请求焊装白车身信息 /// /// /// public WebResponseContent RequstCarBodyInfo(RequestTaskDto json) { WebResponseContent webResponseContent = new WebResponseContent(); try { var carInfo = _carBodyInfoRepository.QueryFirst(x => x.RFID == json.PVI); if (carInfo != null) throw new Exception($"PVI{json.PVI}车身数据已存在"); ///请求焊装车身特征 WebResponseContent webResponse = _mesService.issuedCharacter(json.PVI, json.Position, json.PalletCode); if (!webResponse.Status) throw new Exception($"{webResponse.Message}"); ///BDC01 过点 WebResponseContent content = _mesService.PassPoint(json); if (!content.Status) throw new Exception($"{content.Message}"); return webResponseContent.OK(); } catch (Exception ex) { webResponseContent.Error($"获取车身数据失败{ex.Message}"); } return webResponseContent; } } }